Mulugruntz <mulugru...@gmail.com> added the comment:

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))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44259>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to