Skip to content

Use str.isascii#23378

Closed
eagleoflqj wants to merge 1 commit intoemscripten-core:mainfrom
eagleoflqj:isascii
Closed

Use str.isascii#23378
eagleoflqj wants to merge 1 commit intoemscripten-core:mainfrom
eagleoflqj:isascii

Conversation

@eagleoflqj
Copy link
Copy Markdown
Contributor

As Ubuntu focal is the oldest version supported by emscripten and it packages Python 3.8.2, I think it'd be safe to replace isascii.
https://launchpad.net/ubuntu/focal/+package/python3

Comment thread tools/building.py


# Remove this once we require python3.7 and can use std.isascii.
# See: https://docs.python.org/3/library/stdtypes.html#str.isascii
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are proposing we drop support for python3.6 can you open a bug for that where we can discuss the costs/benefits?

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Jan 13, 2025

I created an issue to discuss bumping the minimum supported python version: #23387

sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.9 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (jammy): 3.10
- emsdk: 3.9.2

It also seems like a good idea to choose the emsdk version since that is
the version we use for testing and we don't currently have any mechanism
to test on anything older than that (which means we currently lack any
way to confirm that we really do support 3.6).

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.9 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (jammy): 3.10
- emsdk: 3.9.2

It also seems like a good idea to choose the emsdk version since that is
the version we use for testing and we don't currently have any mechanism
to test on anything older than that (which means we currently lack any
way to confirm that we really do support 3.6).

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.9 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (jammy): 3.10
- emsdk: 3.9.2

It also seems like a good idea to choose the emsdk version since that is
the version we use for testing and we don't currently have any mechanism
to test on anything older than that (which means we currently lack any
way to confirm that we really do support 3.6).

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.8 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.8 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 15, 2025
The reason for picking 3.8 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
@eagleoflqj
Copy link
Copy Markdown
Contributor Author

Closing in favor of #23417

@eagleoflqj eagleoflqj closed this Jan 19, 2025
@eagleoflqj eagleoflqj deleted the isascii branch January 19, 2025 20:26
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 22, 2025
The reason for picking 3.8 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 30, 2025
The reason for picking 3.8 here is that it provides all the features
we currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

Replaces: emscripten-core#23378
Fixes: emscripten-core#23387
sbc100 added a commit that referenced this pull request Jan 30, 2025
The reason for picking 3.8 here is that it provides all the features we
currently have need of, and it available in the places we care about:

- debian/stable (bookworm): 3.11
- ubuntu/LTS (focal): 3.8
- emsdk: 3.9.2

The motivation for this change is twofold:

1. We get access to a few more python features.
2. We actually test using the version we claim to support (3.8 on
ubuntu/focal in CI). Currently the claim that we support 3.6 could well
be a lie. We don't do any testing on 3.6 do who knows if
incompatibilities have snuck in.

Replaces: #23378
Fixes: #23387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants