[issue46521] codeop._maybe_compile passes code with error + triple quotes
Pablo Galindo Salgado
report at bugs.python.org
Sun Jan 30 06:37:06 EST 2022
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
> The message is off
That's because the tokenizer sees the error before the parser even has time to see the other one. Not sure if is technically anything to fix here other than the order of reporting two different errors, which may be a bit tricky to fix.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46521>
_______________________________________
More information about the Python-bugs-list
mailing list