GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python -m tokenize is broken when reading from stdin · Issue #105324 · python/cpython

python -m tokenize is broken when reading from stdin #105324

New issue
Copy link
New issue
Copy link
Closed
Closed
python -m tokenize is broken when reading from stdin#105324
Copy link

Description

@pablogsal
pablogsal
opened on Jun 5, 2023
Issue body actions
 ./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

Linked PRs

  • gh-105324: Fix tokenize module main function for stdin #105325
  • [3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325) #105330

Activity

  1. pablogsal
    added a commit that references this issue on Jun 5, 2023

    pythongh-105324: Fix tokenize module main function for stdin

    f0294ad
  2. ambv
    added a commit that references this issue on Jun 5, 2023

    gh-105324: Fix tokenize module main function for stdin (#105325)

    f04c168
  3. miss-islington
    added a commit that references this issue on Jun 5, 2023

    pythongh-105324: Fix tokenize module main function for stdin (pythonG…

    0be168f
  4. pablogsal
    added a commit that references this issue on Jun 5, 2023

    [3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325

    3aa3be4
  5. pablogsal
    closed this as completedon Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.