string: __iter__()?

mrquantum mrquantum at holon.at
Wed Oct 4 12:11:29 CEST 2006


Am Wed, 04 Oct 2006 12:03:41 +0200 schrieb Fredrik Lundh:

> 
> really?  iter("SomeString") works just fine for me.
> 

Hmm, right!

But then why doesn't dir('SomeString') show an __iter__ method? Seems to
be implmented differently than with e.g. lists? Know why?



More information about the Python-list mailing list