[issue20327] Argument Clinic: setting internal variable names for parsed arguments
Tal Einat
report at bugs.python.org
Tue Jan 21 13:09:07 CET 2014
Tal Einat added the comment:
Attaching a straight-forward patch, adding an optional 'c_name' parameter to CConvertor. When given it is used for the name of the C variable. It is also used for the '_length' variable names (when used).
This works for my use case (bytes.translate). All existing clinic tests pass.
This patch doesn't include new tests. If this feature request and implementation approach are accepted, I'd be happy to add tests.
----------
keywords: +patch
nosy: +larry
Added file: http://bugs.python.org/file33588/clinic_allow_setting_c_variable_name.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20327>
_______________________________________
More information about the Python-bugs-list
mailing list