[docs] [issue14528] Document whether strings implement __iter__

Raymond Hettinger report at bugs.python.org
Sun Apr 8 22:13:20 CEST 2012

Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Sorry, I agree with Georg, this isn't a bug, not even a documentation bug.  A type is free to implement iteration either by way of __iter__ or by way of __getitem__.  How it chooses to do so is an implementation detail (and different implementations have made different choices).

nosy: +rhettinger
resolution:  -> invalid
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the docs mailing list