-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Change in tokenize.generate_tokens behaviour with non-ASCII #112943
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-parser
type-bug
An unexpected behavior, bug, or error
Comments
hugovk
added
type-bug
An unexpected behavior, bug, or error
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Dec 10, 2023
hugovk
added
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-parser
labels
Dec 10, 2023
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Dec 11, 2023
…n the tokenize module
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Dec 11, 2023
…okens in the tokenize module (pythonGH-112949) (cherry picked from commit a135a6d) Co-authored-by: Pablo Galindo Salgado <[email protected]>
Thanks for the report @hugovk |
pablogsal
added a commit
that referenced
this issue
Dec 11, 2023
Thanks for the quick fix! @mpasternak This will be in Python 3.12.2, due in February 2024, and 3.13.0a3, due next week (Tuesday, 2023-12-19). |
Probably the first case a comment in my software ever helped anybody. Thanks! |
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…n the tokenize module (python#112949)
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…n the tokenize module (python#112949)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-parser
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
This docstring has non-ASCII characters:
And
tokenize.generate_tokens
has different behaviour between 3.11, and 3.12 (and 3.13).Python 3.11
Python 3.12
git bisect
Points to PR #104323 (gh-102856: Python tokenizer implementation for PEP 701).
What’s New In Python 3.12 » Changes in the Python API says:
This change isn't listed here, but is this an acceptable behavioural change or something to fix?
cc @lysnikolaou @pablogsal
More info
Originally reported at asottile/pyupgrade#923 by @mpasternak with the minimal reproducer created by @asottile.
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: