diff options
author | Guido van Rossum <guido@python.org> | 2002-08-24 06:57:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-24 06:57:49 (GMT) |
commit | bf935fde1550b768d9fb14cec230d1e79a5212c2 (patch) | |
tree | fc0aaddf9e0c7edd26df5b6e52c9a6e13a6ba678 /Objects/tupleobject.c | |
parent | 9d6897accc49f40414fbecafeb1c65562c6e4647 (diff) | |
download | cpython-bf935fde1550b768d9fb14cec230d1e79a5212c2.zip cpython-bf935fde1550b768d9fb14cec230d1e79a5212c2.tar.gz cpython-bf935fde1550b768d9fb14cec230d1e79a5212c2.tar.bz2 |
string_contains(): speed up by avoiding function calls where
possible. This always called PyUnicode_Check() and PyString_Check(),
at least one of which would call PyType_IsSubtype(). Also, this would
call PyString_Size() on known string objects.
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions