• Fred Drake's avatar
    Thomas Wouters <thomas@xs4all.net>: · 56780257
    Fred Drake yazdı
    The following patch adds "sq_contains" support to rangeobject, and enables
    the already-written support for sq_contains in listobject and tupleobject.
    
    The rangeobject "contains" code should be a bit more efficient than the
    current default "in" implementation ;-) It might not get used much, but it's
    not that much to add.
    
    listobject.c and tupleobject.c already had code for sq_contains, and the
    proper struct member was set, but the PyType structure was not extended to
    include tp_flags, so the object-specific code was not getting called (Go
    ahead, test it ;-). I also did this for the immutable_list_type in
    listobject.c, eventhough it is probably never used. Symmetry and all that.
    56780257
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...