Handling slices
Francois Pinard
pinard at iro.umontreal.ca
Sun Apr 6 20:54:10 EDT 2003
Hi, Python friends.
I'm currently using Python 2.2.1. How does one support slices when given
to __getitem__? Suppose I get a slice object. How can I use it to get
a slice of a local array? In other words, how one does apply a slice?
The documentation says that __getslice__ is deprecated since 2.0, but then,
I need an alternative way for using it. What is it?
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list