This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mulugruntz
Recipients mulugruntz, terry.reedy
Date 2021-05-29.07:24:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622273094.78.0.882237200282.issue44259@roundup.psfhosted.org>
In-reply-to
Content
Traceback (most recent call last):
  File "/Users/sgiffard/Library/Application Support/JetBrains/PyCharm2020.3/scratches/scratch_24.py", line 9, in <module>
    driver.parse_string("""class C:\n    def exec(self): pass\n""")
  File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib2to3/pgen2/driver.py", line 103, in parse_string
    return self.parse_tokens(tokens, debug)
  File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib2to3/pgen2/driver.py", line 71, in parse_tokens
    if p.addtoken(type, value, (prefix, start)):
  File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib2to3/pgen2/parse.py", line 162, in addtoken
    raise ParseError("bad input", type, value, context)
lib2to3.pgen2.parse.ParseError: bad input: type=1, value='exec', context=(' ', (2, 8))
History
Date User Action Args
2021-05-29 07:24:54mulugruntzsetrecipients: + mulugruntz, terry.reedy
2021-05-29 07:24:54mulugruntzsetmessageid: <1622273094.78.0.882237200282.issue44259@roundup.psfhosted.org>
2021-05-29 07:24:54mulugruntzlinkissue44259 messages
2021-05-29 07:24:54mulugruntzcreate