Zachary Ware added the comment:
This is a duplicate of issue20227; I'm adding you to the nosy of that one, Tal.
--
nosy: +zach.ware
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> Argument Clinic: rename arguments in generated C?
__
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 c
New submission from Tal Einat:
It would be useful for conversion of existing function to be able to set the
name of the C variable for arguments which is different than the Python
argument name.
For example, not being able to do so makes converting bytes.translate much
harder. In the existing