[issue40334] PEP 617: new PEG-based parser

Pablo Galindo Salgado report at bugs.python.org
Sun May 10 18:50:12 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

There is some discrepancy with the codeop module when running with the new parser:

./python -c "import codeop; codeop.CommandCompiler()('raise = 2\n\n', symbol='exec')"

(No error)

./python -Xoldparser -c "import codeop; codeop.CommandCompiler()('raise = 2\n\n', symbol='exec')"
...
  File "<input>", line 1
    raise = 2
          ^
SyntaxError: invalid syntax

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40334>
_______________________________________


More information about the Python-bugs-list mailing list