Title: python -m tokenize is broken when reading from stdin · Issue #105324 · python/cpython · GitHub
Open Graph Title: python -m tokenize is broken when reading from stdin · Issue #105324 · python/cpython
X Title: python -m tokenize is broken when reading from stdin · Issue #105324 · python/cpython
Description: ./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...
Open Graph Description: ./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,...
X Description: ./python.exe -m tokenize <<< 'f"{F():\n}"' unexpected error: 'generator' object is not callable Traceback (most recent call last): File "/Users/pgalindo3/git...
Opengraph URL: https://github.com/python/cpython/issues/105324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"python -m tokenize is broken when reading from stdin","articleBody":"```\r\n ./python.exe -m tokenize \u003c\u003c\u003c 'f\"{F():\\n}\"'\r\nunexpected error: 'generator' object is not callable\r\nTraceback (most recent call last):\r\n File \"/Users/pgalindo3/github/python/main/Lib/runpy.py\", line 198, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/pgalindo3/github/python/main/Lib/runpy.py\", line 88, in _run_code\r\n exec(code, run_globals)\r\n File \"/Users/pgalindo3/github/python/main/Lib/tokenize.py\", line 532, in \u003cmodule\u003e\r\n main()\r\n File \"/Users/pgalindo3/github/python/main/Lib/tokenize.py\", line 498, in main\r\n for token in tokens:\r\n File \"/Users/pgalindo3/github/python/main/Lib/tokenize.py\", line 527, in _generate_tokens_from_c_tokenizer\r\n for info in it:\r\nTypeError: 'generator' object is not callable\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105325\n* gh-105330\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pablogsal","@type":"Person","name":"pablogsal"},"datePublished":"2023-06-05T15:34:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/105324/cpython/issues/105324"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2be1fb6-0f73-f451-1654-8a8ca883edcc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E5A:1D5ACA:111801D:16CC0F1:6969AA16 |
| html-safe-nonce | e34f2a5c70e12cd66f963dcbc89b7913eef0740762da8c8c0d63fac69d4016ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTVBOjFENUFDQToxMTE4MDFEOjE2Q0MwRjE6Njk2OUFBMTYiLCJ2aXNpdG9yX2lkIjoiNDU5MTIyNzc1OTUyNTIxMDY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd2feba61fff41f2ef93e05f8e0cd4f38c22767834131167c06fe589b3cb5d3b |
| hovercard-subject-tag | issue:1742039770 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/105324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a75cc33e339150a62e05e92aa0030e02ffe36df6d45f2a7cf00d940b068fd59e/python/cpython/issues/105324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a75cc33e339150a62e05e92aa0030e02ffe36df6d45f2a7cf00d940b068fd59e/python/cpython/issues/105324 |
| og:image:alt | ./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,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pablogsal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width