Message207948
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. |
|
Date |
User |
Action |
Args |
2014-01-12 11:05:36 | georg.brandl | set | recipients:
+ georg.brandl, larry |
2014-01-12 11:05:36 | georg.brandl | set | messageid: <1389524736.75.0.620647933805.issue20227@psf.upfronthosting.co.za> |
2014-01-12 11:05:36 | georg.brandl | link | issue20227 messages |
2014-01-12 11:05:36 | georg.brandl | create | |
|