[issue43163] codeop prematurely raises on 2nd line when closer is needed

Pablo Galindo Salgado report at bugs.python.org
Mon Feb 8 15:59:52 EST 2021


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

> (I think it would be good if a C expert compared it to the *current* C code.)

That would be very beneficial but is quite a big task, specially given that codeop design is quite surprising. I personally find quite confusing the way codeop is handling the decisions on continuing or not (is based on compiling the code with different levels of new lines and then checking the repr() of the exceptions). It would be good if someone familiar with "codeop" design can take a look on what's the best way to proceed.

----------

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


More information about the Python-bugs-list mailing list