[issue39500] Document PyUnicode_IsIdentifier() function

Serhiy Storchaka report at bugs.python.org
Thu Jan 30 16:54:31 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is not convenient to check the result for error. After we remove support of old PyUnicode API, PyUnicode_IsIdentifier() will be always succeeded.

Note that PyUnicode_IsIdentifier() still can crash if you pass a non-PyUnicode object or NULL. It is a prerequisite of this function that the argument must be a PyUnicode object. Add just yet one condition: it must be a ready PyUnicode object.

----------

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


More information about the Python-bugs-list mailing list