summaryrefslogtreecommitdiff
path: root/Objects/stringlib/eq.h
AgeCommit message (Collapse)AuthorLines
2017-09-14bpo-31338 (#3374)Barry Warsaw-2/+1
* Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros.
2013-08-13mergeRaymond Hettinger-9/+0
2013-08-13Issue 18719: Remove a false optimizationRaymond Hettinger-9/+0
Remove an unused early-out test from the critical path for dict and set lookups. When the strings already have matching lengths, kinds, and hashes, there is no additional information gained by checking the first characters (the probability of a mismatch is already known to be less than 1 in 2**64).
2013-08-13Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou-2/+2
2011-10-07Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.Martin v. Löwis-1/+1
2011-09-28Implement PEP 393.Martin v. Löwis-5/+18
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-11/+11
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
2007-12-10Fixed issue #1564: The set implementation should special-case PyUnicode ↵Christian Heimes-0/+21
instead of PyString I moved the unicode_eq to stringlib/eq.h to keep the function static and possible inline for setobject.c and dictobject.h. I also removed the unused _PyString_Eq method. If it's required in the future it can be added to eq.h