FEEDBACK WANTED: Type/class unification

Markus Schaber markus at
Tue Aug 7 16:40:12 CEST 2001


Dylan Thurston <dpt at> schrub:

> Let me complain a little about the slicing interface while I'm at it.
> I don't understand why missing endpoints are turned into 0/maxint
> (rather than, say, 'None') before calling __getitem__; it removes a
> lot of flexibility.  Also, why are the slices restricted to being
> integers?  I can imagine, say, slicing a 2-dimensional array based on
> the endpoints (like 'delete-rectangle', etc. in Emacs).

With the automatic turning to 0/maxint, they even are limited to 
non-negative integers. So it is impossible to use any form of negative 
indexes, which sometimes would be nice when dealing with coordinates.

Defend democrathy and freedom!

More information about the Python-list mailing list