]> granicus.if.org Git - python/commit
Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 13:41:11 +0000 (15:41 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 13:41:11 +0000 (15:41 +0200)
commitfab6acd9f58584d2f4b361418e4d17f9c23db2f9
treeaee38e54448d48d8652ab4c62792ca414d4653f3
parent3b73ea127892d0e1f9d8f12f88e4f9c0ba0b89b1
parentf5894dd646f5e39918377b37b8c8694cebdca103
Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.

The latter function is more readable, faster and doesn't raise exceptions.

Based on patch by Xiang Zhang.
Include/unicodeobject.h
Objects/typeobject.c
Objects/unicodeobject.c
Python/errors.c
Python/pythonrun.c