Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Other examples are: * PyObject_HasAttr * PyObject_HasAttrString * PyMapping_HasKey * PyMapping_HasKeyString They are bad examples, but can't be changed for backward compatibility. I wonder whether PyUnicode_IsIdentifier should also kept unchanged for backward compatibility. There is also a number of *_Check functions which always succeeds. Other example is _PyUnicode_EqualToASCIIString where the behavior is intentional. PyUnicode_IsIdentifier() was not documented before. It makes easier to change its behavior. ---------- _______________________________________ 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