Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39500>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to