[docs] [issue18697] Unify arguments names in Unicode object C API documentation

Rune Tynan report at bugs.python.org
Thu Mar 28 21:16:42 EDT 2019


Rune Tynan <runetynan at gmail.com> added the comment:

I have some interest in making a fix for this. From discussion, I'm thinking that, barring names that already have clear meaning (EG, left/right for things with two parameters):
- PyObject* that is unknown type remains `obj`
- PyObject* with unicode string is `unicode`
- const char*, const Py_UNICODE*, and const wchar* becomes `str`
- const char, const Py_UNICODE, and const wchar become `ch`

Those seem to be the intersect of most common and most descriptive names already seen.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18697>
_______________________________________


More information about the docs mailing list