[Python-Dev] __getitem__ in user defined classes

Greg Ewing greg@cosc.canterbury.ac.nz
2002年10月21日 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	 +--------------------------------------+

AltStyle によって変換されたページ (->オリジナル) /