[issue20327] Argument Clinic: setting internal variable names for parsed arguments

2014-01-21 Thread Zachary Ware
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? __

[issue20327] Argument Clinic: setting internal variable names for parsed arguments

2014-01-21 Thread Tal Einat
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

[issue20327] Argument Clinic: setting internal variable names for parsed arguments

2014-01-21 Thread Tal Einat
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