Author robin900
Recipients
Date 2001-03-13.21:04:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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 ask that this patch be considered a "bug fix", 
rather than a change in functionality, and thus be 
included in 2.1b2 and forward.

Other proposed changes to slicing and slice objects 
have been postponed until further discussion and the 
requisite PEP submission.

History
Date User Action Args
2007-08-23 15:04:15adminlinkissue408326 messages
2007-08-23 15:04:15admincreate