Newbie - How to iterate list or scalar ?

Bruno Desthuilliers onurb at xiludom.gro
Thu Aug 10 11:39:28 EDT 2006


Delaney, Timothy (Tim) wrote:
> Bruno Desthuilliers wrote:
> 
>> What I wonder here is why __iter__ has been added to lists and tuples
>> but not to strings (not that I'm complaining, it's just curiousity...)
> 
> Because someone got around to doing it.

Ok, so it's definitively a design decision, and should by no mean be
used. Thanks Tim for clarifying this point.




More information about the Python-list mailing list