]> 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:31 +0000 (15:41 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Nov 2016 13:41:31 +0000 (15:41 +0200)
commit29a54473600bc69975fd84b67570f5b04c447d84
tree4c98ac7ff2948dc9b933dfcd72ef25f0d0227214
parent1a73bf365e9664f8dd3357ebbb78ceaa79df2172
parentfab6acd9f58584d2f4b361418e4d17f9c23db2f9
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.
Objects/unicodeobject.c
Python/errors.c