Ron Adam wrote: > 1. Remove None stored as indices in slice objects. Depending on the step > value, Any Nones can be converted to 0 or -1 immediately,
But None isn't the same as -1 in a slice. None means the end of the sequence, whereas -1 means one less than the end. I'm also not all that happy about forcing slice indices to be ints. Traditionally they are, but someone might want to define a class that uses them in a more general way. > Once the slice is created the Nones are not needed, valid index values > can be determined. I don't understand what you mean here. Slice objects themselves know nothing about what object they're going to be used to slice, so there's no way they can determine "valid index values" (or even *types* -- see above). -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
