This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Forbid iteration over strings
Type: Stage:
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: georg.brandl, gvanrossum
Priority: low Keywords: patch

Created on 2006-04-16 13:43 by gvanrossum, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
nostringiter.txt gvanrossum, 2006-04-16 13:43 Patch
Messages (2)
msg50021 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2006-04-16 13:43
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.
msg50022 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-30 08:31
Logged In: YES 
user_id=849994

Marking as Rejected as this was included in PEP 3099.
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43222
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2006-04-16 13:43:04gvanrossumcreate