Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use str.isascii #23378

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use str.isascii #23378

wants to merge 1 commit into from

Conversation

eagleoflqj
Copy link
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

@@ -476,17 +476,6 @@ def check_closure_compiler(cmd, args, env, allowed_to_fail):
return True


# 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
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
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
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