[Python-iterators] While we're at it...

Eduard Hiti eduard.hiti at t-online.de
Sat Jun 30 07:11:25 EDT 2001


|
| Anything else come to mind?  The core language coverage is pretty broad
| already, so lots of stuff in the .py libraries should "just work by magic"
| with any iterable argument.  OTOH, we all have blind spots, and, e.g., I
| never would have thought of the "right-hand side of a multiple-target
| assignment stmt" context on my own.
|

Could iterators be made slicable?

Then a 'fib()[3:6]' would give you the third to fifth fibonacci numbers.






More information about the Python-list mailing list