[Patches] [ python-Patches-1459011 ] Mutable Iterators PEP

SourceForge.net noreply at sourceforge.net
Mon Mar 27 04:14:32 CEST 2006


Patches item #1459011, was opened at 2006-03-26 21:08
Message generated for change (Settings changed) made by adamdeprince
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1459011&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.5
>Status: Pending
>Resolution: Later
>Priority: 1
Submitted By: Adam DePrince (adamdeprince)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mutable Iterators PEP

Initial Comment:
This patch is a partial implementation of the mutable
iterators PEP currently being discussed on the
python-3000 mailing list.  

It differs from the PEP in a few ways:

1. We havn't quite eliminiated the annoying iter
variants of dict.keys/values/items because parts of the
python proper expect the non iter variants to return
something indexable.

2. We currently don't support the java fast-fail
semantics for concurrent mutation.  This requires some
discussion, because it might involve a small
performance burden on all structures that support
mutable iterators, evne when there are currrently
running.  

While the eliminiation of iter{keys/items/values} is
hoped for 3.0, there is no reason the iters couldn't
silently become mutable for 2.5.  I'll discuss this in
morn depth on the mailing list. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1459011&group_id=5470


More information about the Patches mailing list