]> granicus.if.org Git - python/commit
Patch #424475: Speed-up tp_compare usage, by special-casing the common
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 9 Jun 2001 07:34:05 +0000 (07:34 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 9 Jun 2001 07:34:05 +0000 (07:34 +0000)
commit0163d6d6ef85dd0cd0ea4ea6dce4b867e39cd6b9
tree238ba5fe594b3f5ab5a890a75a3e0bc86e5890cb
parent7bc50714febbd1a01c5c364844df6d9bd801eb24
Patch #424475: Speed-up tp_compare usage, by special-casing the common
case of objects with equal types which support tp_compare. Give
type objects a tp_compare function.
Also add c<0 tests before a few PyErr_Occurred tests.
Lib/UserList.py
Objects/object.c
Objects/typeobject.c