[issue24207] Argument Clinic doesn't mangle conflicting names
Serhiy Storchaka
report at bugs.python.org
Sat May 16 12:21:04 CEST 2015
New submission from Serhiy Storchaka:
Argument Clinic adds the "_value" suffix to the end of variable names in C if the parameter name is C keyword. But it left unmodified parameter names that can conflict with parameter names of C function: args and kwargs (and module and self if they are used not as the first parameter). Following declaration generates a code that can't bi compiled:
mod.func
args: object
kwargs: object
Either Argument Clinic should add the "_value" suffix to the end of these names, or use other names for parameters of generated parser function.
----------
components: Argument Clinic
messages: 243304
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Argument Clinic doesn't mangle conflicting names
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24207>
_______________________________________
More information about the Python-bugs-list
mailing list