[Python-3000] Iterators for dict keys, values, and items == annoying :)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 31 04:34:04 CEST 2006
Adam DePrince wrote:
> Views
> are not generated, they are either directly implemented, or returned.
If you're thinking that the object would keep a set of
pre-allocated views, there's a problem with that --
the views need to have a reference to the base object,
thus creating a circular reference.
The object could perhaps keep a cache of weakly-
referenced views, returning one of those if it's
available, otherwise creating a new one.
--
Greg
More information about the Python-3000
mailing list