Message264606
Argument Clinic uses original name of Python parameter in generated code for custom (format code "O&") converter even if the parameter was renamed.
Example:
/*[clinic input]
test
filename as path: object(converter="PyUnicode_FSConverter")
/
[clinic start generated code]*/
Generated code:
static PyObject *
test(PyModuleDef *module, PyObject *arg)
{
PyObject *return_value = NULL;
PyObject *path;
if (!PyUnicode_FSConverter(arg, &filename))
goto exit;
return_value = test_impl(module, path);
exit:
return return_value;
} |
|
Date |
User |
Action |
Args |
2016-05-01 18:45:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, larry |
2016-05-01 18:45:28 | serhiy.storchaka | set | messageid: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za> |
2016-05-01 18:45:28 | serhiy.storchaka | link | issue26902 messages |
2016-05-01 18:45:28 | serhiy.storchaka | create | |
|