[Python-Dev] __getitem__ in user defined classes
Greg Ewing
greg@cosc.canterbury.ac.nz
Mon, 21 Oct 2002 16:39:53 +1300 (NZDT)
Raymond Hettinger <python@rcn.com>:
> This could be simplified somewhat by making slices iterable
Hmmm... if slices were iterable, they'd behave a lot
like xrange objects.
Perhaps
slice == xrange
could be true in some future Python?
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+