[issue43366] Unclosed bracket bug in code.interact prevents identifying syntax errors

Terry J. Reedy report at bugs.python.org
Fri Mar 5 21:08:20 EST 2021


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Add compile(..., mode='repl')?
"If mode is 'repl', compile returns None to indicate that the code is incomplete as is but might become valid if more lines (or maybe just more code) were added"

Deprecate _maybe_compile (and stop trying to patch it).

----------

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


More information about the Python-bugs-list mailing list