pinard at iro.umontreal.ca
Mon Apr 7 02:54:10 CEST 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