Staging
v0.8.1
https://github.com/python/cpython
Revision 16a77adfbd745c202878fabb0b921514fec7ca16 authored by Tim Peters on 08 September 2001, 04:00:12 UTC, committed by Tim Peters on 08 September 2001, 04:00:12 UTC
iterable object.  I'm not sure how that got overlooked before!

Got rid of the internal _PySequence_IterContains, introduced a new
internal _PySequence_IterSearch, and rewrote all the iteration-based
"count of", "index of", and "is the object in it or not?" routines to
just call the new function.  I suppose it's slower this way, but the
code duplication was getting depressing.
1 parent 2d84f2c
History
Tip revision: 16a77adfbd745c202878fabb0b921514fec7ca16 authored by Tim Peters on 08 September 2001, 04:00:12 UTC
Generalize operator.indexOf (PySequence_Index) to work with any
Tip revision: 16a77ad
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
abstract.c -rw-r--r-- 38.2 KB
bufferobject.c -rw-r--r-- 11.1 KB
cellobject.c -rw-r--r-- 2.3 KB
classobject.c -rw-r--r-- 54.7 KB
cobject.c -rw-r--r-- 3.6 KB
complexobject.c -rw-r--r-- 20.7 KB
descrobject.c -rw-r--r-- 23.0 KB
dictobject.c -rw-r--r-- 47.7 KB
fileobject.c -rw-r--r-- 34.2 KB
floatobject.c -rw-r--r-- 20.0 KB
frameobject.c -rw-r--r-- 11.8 KB
funcobject.c -rw-r--r-- 14.0 KB
intobject.c -rw-r--r-- 24.3 KB
iterobject.c -rw-r--r-- 5.8 KB
listobject.c -rw-r--r-- 44.3 KB
longobject.c -rw-r--r-- 51.7 KB
methodobject.c -rw-r--r-- 7.1 KB
moduleobject.c -rw-r--r-- 5.4 KB
object.c -rw-r--r-- 43.1 KB
obmalloc.c -rw-r--r-- 22.2 KB
rangeobject.c -rw-r--r-- 6.9 KB
sliceobject.c -rw-r--r-- 4.4 KB
stringobject.c -rw-r--r-- 83.8 KB
tupleobject.c -rw-r--r-- 14.4 KB
typeobject.c -rw-r--r-- 83.0 KB
unicodectype.c -rw-r--r-- 8.6 KB
unicodeobject.c -rw-r--r-- 129.0 KB
unicodetype_db.h -rw-r--r-- 37.0 KB
xxobject.c -rw-r--r-- 2.4 KB

back to top