FEEDBACK WANTED: Type/class unification

Markus Schaber markus at schabi.de
Tue Aug 7 10:40:12 EDT 2001


Hello,

Dylan Thurston <dpt at abel.math.harvard.edu> 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.

markus
-- 
Defend democrathy and freedom!



More information about the Python-list mailing list