cpython/Objects
Fred Drake 56780257c6 Thomas Wouters <thomas@xs4all.net>:
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.
2000-06-15 14:50:20 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
Makefile.in Marc-AAndre Lemburg: add new unicode files 2000-03-10 22:55:40 +00:00
abstract.c Marc-Andre's third try at this bulk patch seems to work (except that 2000-04-05 20:11:21 +00:00
bufferobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
classobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
cobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
complexobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
dictobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
fileobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
floatobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
frameobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
funcobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
intobject.c Replace PyErr_BadArgument() error in PyInt_AsLong() with "an integer 2000-05-09 14:27:48 +00:00
listobject.c Thomas Wouters <thomas@xs4all.net>: 2000-06-15 14:50:20 +00:00
longobject.c Trent Mick <trentm@ActiveState.com>: 2000-06-01 18:37:36 +00:00
methodobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
moduleobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
object.c the PyDict_SetItem does not borrow a reference, so we need to decref 2000-06-09 16:20:39 +00:00
rangeobject.c Thomas Wouters <thomas@xs4all.net>: 2000-06-15 14:50:20 +00:00
sliceobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
stringobject.c Marc-Andre Lemburg <mal@lemburg.com>: 2000-06-14 09:18:32 +00:00
tupleobject.c Thomas Wouters <thomas@xs4all.net>: 2000-06-15 14:50:20 +00:00
typeobject.c American spelling in doc string. 1997-06-02 14:43:07 +00:00
unicodectype.c Marc-Andre Lemburg: 2000-04-11 15:39:02 +00:00
unicodeobject.c Marc-Andre Lemburg <mal@lemburg.com>: 2000-06-14 09:18:32 +00:00
xxobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00