[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>
<http://bugs.python.org/issue14528>
_______________________________________
More information about the docs
mailing list