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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2016-05-01.18:45:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za>
In-reply-to
Content
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;
}
History
Date User Action Args
2016-05-01 18:45:28serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2016-05-01 18:45:28serhiy.storchakasetmessageid: <1462128328.67.0.613776590116.issue26902@psf.upfronthosting.co.za>
2016-05-01 18:45:28serhiy.storchakalinkissue26902 messages
2016-05-01 18:45:28serhiy.storchakacreate