[Python-3000] Iterators for dict keys, values, and items == annoying :)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Mar 30 02:05:24 CEST 2006
Stefan Rank wrote:
> A big question is: Should slicing also return views? and why not?
That's been considered before, in relation to strings.
The stumbling block is the problem of a view of a
small part of the object keeping the whole thing
alive and using up memory.
While having a separate way of getting slice-views
could be useful, I think it would be too big a
change in semantics to make it the default
behaviour of slicing notation.
--
Greg
More information about the Python-3000
mailing list