[Patches] [ python-Patches-1471291 ] Forbid iteration over strings

SourceForge.net noreply at sourceforge.net
Sun Apr 16 15:43:05 CEST 2006


Patches item #1471291, was opened at 2006-04-16 09:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1471291&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 3000
Status: Open
Resolution: None
Priority: 1
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Guido van Rossum (gvanrossum)
Summary: Forbid iteration over strings

Initial Comment:
This was proposed on the list.  It turned out to be
easy to implement the basic feature (iter() only calls
__iter__ and doesn't fall back on __getitem__) but a
disaster to use -- even after extensive fixes to the
sre compiler and smaller fixes to half a dozen other
modules, 120 tests were failing.  I'm saving the diffs
here for posterity.

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

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


More information about the Patches mailing list