]> granicus.if.org Git - python/commit
Speedup for PyObject_IsTrue(): check for True and False first.
authorGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:31:34 +0000 (06:31 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:31:34 +0000 (06:31 +0000)
commit6248f441ea3ca34ed3306eb8634e6815a42611b4
tree935f51d1466ef9eab41a908c7278ceb040af1692
parent1b9f5d4c1a56a557fda85f796a40bd1c8dac6f70
Speedup for PyObject_IsTrue(): check for True and False first.
Because all built-in tests return bools now, this is the most common
path!
Objects/object.c