Why Python does *SLICING* the way it does??

Diez B. Roggisch deetsNOSPAM at web.de
Wed Apr 20 10:18:51 EDT 2005


> Personnaly I would like to have the choice. Sometimes I prefer to
> start at 0, sometimes at 1 and other times at -13 or +7.


Subclass from builtin list - and make the necessary adjustmenst yourself in
an overloaded __getitem__.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list