You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
python -m tokenize is broken when reading from stdin #105324
./python.exe -m tokenize <<< 'f"{F():\n}"'
unexpected error: 'generator' object is not callable
Traceback (most recent call last):
File "/Users/pgalindo3/github/python/main/Lib/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pgalindo3/github/python/main/Lib/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/Users/pgalindo3/github/python/main/Lib/tokenize.py", line 532, in <module>
main()
File "/Users/pgalindo3/github/python/main/Lib/tokenize.py", line 498, in main
for token in tokens:
File "/Users/pgalindo3/github/python/main/Lib/tokenize.py", line 527, in _generate_tokens_from_c_tokenizer
for info in it:
TypeError: 'generator' object is not callable
Activity
pythongh-105324: Fix tokenize module main function for stdin
gh-105324: Fix tokenize module main function for stdin (#105325)
pythongh-105324: Fix tokenize module main function for stdin (pythonG…
[3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325