[issue42291] Incorrect signature of CodeType.replace()

STINNER Victor report at bugs.python.org
Mon Nov 9 09:46:09 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> Argument Clinic and the inspect module do not support this case.

That's why I used -1 and None.

> But -1 and None are incorrect values for many parameters, and even if they would be correct, they are not default values. By default, if you do not specify some argument, the value of the corresponding attribute would not be changed.

If you consider that this issue matters, you may hack the code to accept None as if no parameter was passed (pass NULL).

----------

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


More information about the Python-bugs-list mailing list