[docs] [issue14528] Document whether strings implement __iter__

Georg Brandl report at bugs.python.org
Sun Apr 8 12:16:36 CEST 2012


Georg Brandl <georg at python.org> added the comment:

Why is it so important if strings implement __iter__?  They are iterable in both versions, since iteration falls back on __getitem__ if no __iter__ is defined.  For user code it is irrelevant which of the iteration protocols is present.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14528>
_______________________________________


More information about the docs mailing list