Staging
v0.5.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-- 22 bytes
acceler.c -rw-r--r-- 3.2 KB
assert.h -rw-r--r-- 405 bytes
bitset.c -rw-r--r-- 949 bytes
firstsets.c -rw-r--r-- 2.1 KB
grammar.c -rw-r--r-- 4.6 KB
grammar1.c -rw-r--r-- 1001 bytes
intrcheck.c -rw-r--r-- 2.9 KB
listnode.c -rw-r--r-- 983 bytes
metagrammar.c -rw-r--r-- 2.1 KB
myreadline.c -rw-r--r-- 2.9 KB
node.c -rw-r--r-- 1.3 KB
parser.c -rw-r--r-- 8.7 KB
parser.h -rw-r--r-- 966 bytes
parsetok.c -rw-r--r-- 4.1 KB
pgen.c -rw-r--r-- 14.2 KB
pgen.h -rw-r--r-- 253 bytes
pgenmain.c -rw-r--r-- 3.5 KB
printgrammar.c -rw-r--r-- 2.4 KB
tokenizer.c -rw-r--r-- 17.9 KB
tokenizer.h -rw-r--r-- 1.8 KB

back to top