This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients georg.brandl, larry
Date 2014-01-12.11:05:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389524736.75.0.620647933805.issue20227@psf.upfronthosting.co.za>
In-reply-to
Content
This is a request to be able to name C arguments differently from Python arguments.

Two reasons:

* like for function renaming, some Python argument names are reserved in C ("default" for example, used in sys.getsizeof())

* sometimes the function uses 'O' in PyArg_ParseTuple and then converts the object itself with a nontrivial process.  Usually the converted variable has the name of the Python argument, while the temporary object is named "obj_foo" or "foo_obj".  When converting to Argument Clinic, we have to name the object "foo" and find a new name for the converted "foo", which leads to code churn and less beautiful code.
History
Date User Action Args
2014-01-12 11:05:36georg.brandlsetrecipients: + georg.brandl, larry
2014-01-12 11:05:36georg.brandlsetmessageid: <1389524736.75.0.620647933805.issue20227@psf.upfronthosting.co.za>
2014-01-12 11:05:36georg.brandllinkissue20227 messages
2014-01-12 11:05:36georg.brandlcreate