[issue39741] Argument Clinic name conflict

Batuhan Taskaya report at bugs.python.org
Mon Feb 24 15:07:45 EST 2020


Batuhan Taskaya <batuhanosmantaskaya at gmail.com> added the comment:

After preparing the patch and transforming all arguments with a __clinic_ prefix, I saw there are some actions that are taken by relying on the parser code. An example;
https://github.com/python/cpython/blob/8af4712a16e4b7d1b60f1faec13cd7a88da95f6a/Objects/codeobject.c#L616-L631

In that case, self was already replaced with __clinic_self so that code doesn't work. IMHO there should be an identifier to distinguish these cases like; <self>->co_argc etc. When we see such defaults we can just replace them with the prefixed version.

----------

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


More information about the Python-bugs-list mailing list