[New-bugs-announce] [issue39741] Argument Clinic name conflict

Batuhan Taskaya report at bugs.python.org
Mon Feb 24 12:30:10 EST 2020

New submission from Batuhan Taskaya <batuhanosmantaskaya at gmail.com>:

Argument clinic uses some extra variables (like args, or noptargs, nargs etc.) for parsing. But there is a catch about these names, the generated code becomes wrong if there are any usages of them inside the signature. Encountered with this problem while working on *args support (in issue 20291). 

The possible solution is prefixing every argument in the parser with __clinic_ (__clinic_{var}) for preventing any kind of conflict. I'll draft a PR for this issue.

components: Argument Clinic
messages: 362599
nosy: BTaskaya, larry, pablogsal
priority: low
severity: normal
status: open
title: Argument Clinic name conflict
type: enhancement
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list