[issue46502] Py_CompileString no longer allows to tell "incomplete input" from "invalid input"

Mateusz Loskot report at bugs.python.org
Tue Jan 25 10:04:49 EST 2022


Mateusz Loskot <mateusz at loskot.net> added the comment:

Irit, I can and I will submit a patch.

However, I'm very keen to learn what is an alternative solution then to distinguish hard invalid from incomplete input. IOW, what would be the new way of achieving what's described in the old FAQ?

I believe it would be more useful to the community if I updated the sample in the FAQ instead of just removing it.

----------

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


More information about the Python-bugs-list mailing list