[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 code, the first argument is called 'table' in the docs 
but 'tableobj' in the code. Furthermore, a different variable named 'table' is 
used rather extensively in the function. If clinic could be told to name the C 
variable 'tableobj', then that would be that. Otherwise renaming two variables 
in the code is unaviodable.

--
components: Build, Demos and Tools
messages: 208641
nosy: taleinat
priority: normal
severity: normal
status: open
title: Argument Clinic: setting internal variable names for parsed arguments
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20327
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20327
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com