cpython/Objects
Guido van Rossum a1351fbd88 SF patch #408326 by Robin Thomas: slice objects comparable, not
hashable

This patch changes the behavior of slice objects in the following
manner:

- Slice objects are now comparable with other slice objects as though
they were logically tuples of (start,stop,step). The tuple is not
created in the comparison function, but the comparison behavior is
logically equivalent.

- Slice objects are not hashable. With the above change to being
comparable, slice objects now cannot be used as keys in dictionaries.

[I've edited the patch for style.  Note that this fixes the problem
that dict[i:j] seemed to work but was meaningless.  --GvR]
2001-03-20 12:41:34 +00:00
..
.cvsignore
abstract.c
bufferobject.c
cellobject.c Variety of small INC/DECREF patches that fix reported memory leaks 2001-03-13 01:58:22 +00:00
classobject.c The return value from PyObject_ClearWeakRefs() is no longer meaningful, 2001-02-26 18:56:37 +00:00
cobject.c
complexobject.c SF bug [ #409448 ] Complex division is braindead 2001-03-18 08:21:57 +00:00
dictobject.c
fileobject.c Two improvements to large file support: 2001-03-01 18:26:53 +00:00
floatobject.c When 1.6 boosted the # of digits produced by repr(float), repr(complex) 2001-03-11 08:37:29 +00:00
frameobject.c Variety of small INC/DECREF patches that fix reported memory leaks 2001-03-13 01:58:22 +00:00
funcobject.c Visit the closure during traversal and XDECREF it on during deallocation. 2001-03-01 06:06:37 +00:00
intobject.c Use Py_CHARMASK for ctype macros. Fixes bug #232787. 2001-03-06 12:12:02 +00:00
listobject.c
longobject.c
methodobject.c
moduleobject.c
object.c Add Vladimir Marangozov's object allocator. It is disabled by default. This 2001-02-27 04:45:05 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c
sliceobject.c SF patch #408326 by Robin Thomas: slice objects comparable, not 2001-03-20 12:41:34 +00:00
stringobject.c _Py_ReleaseInternedStrings(): Private API function to decref and 2001-02-23 16:40:48 +00:00
tupleobject.c
typeobject.c
unicodectype.c
unicodeobject.c reorganized PyUnicode_DecodeUnicodeEscape a bit (in order to make it 2001-02-18 22:13:49 +00:00
unicodetype_db.h
xxobject.c