I have a draft PEP and an implementation of mutable iterators for lists
and dicts that supports delete only.
The PEP (Mutable Iterations) and sample code can be found at:
http://www.deprince.net/ideas/peps.html
Or, you can get the patch from:
http://sourceforge.net/tracker/index.php?func=deta
On Friday 24 March 2006 12:57, Steven Bethard wrote:
> There was talk previously_ about removing the else clause on
> for-loops (and while-loops). One possibility would be to change
> the else-clause to behave as expected above (i.e. only executed
> when the loop fails to iterate over any items).