Needless copying in iterations?

buffi bjorn.kempen at gmail.com
Sat Sep 15 18:35:32 EDT 2007


On Sep 16, 12:25 am, "Calvin Spealman" <ironfro... at gmail.com> wrote:
> This is a case where its up to the type involved. For example,
> xrange() slices the way you want but range() does not.

Coul you explain this?
As far as I know you can't slice a xrange

- Björn Kempén




More information about the Python-list mailing list