New submission from Batuhan Taskaya <batuhanosmantask...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to