Issue 1471291: Forbid iteration over strings (original) (raw)

Issue1471291

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:16 admin set github: 43222
2008-01-06 22:29:46 admin set keywords: - py3kversions: + Python 3.0
2006-04-16 13:43:04 gvanrossum create