| commit | bf935fde1550b768d9fb14cec230d1e79a5212c2 | [log] [tgz] |
|---|---|---|
| author | Guido van Rossum <guido@python.org> | Sat Aug 24 06:57:49 2002 +0000 |
| committer | Guido van Rossum <guido@python.org> | Sat Aug 24 06:57:49 2002 +0000 |
| tree | fc0aaddf9e0c7edd26df5b6e52c9a6e13a6ba678 | |
| parent | 9d6897accc49f40414fbecafeb1c65562c6e4647 [diff] |
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.