list comprehension question

Terry Reedy tjreedy at udel.edu
Wed May 6 00:42:34 EDT 2009


Steven D'Aprano wrote:
> On Tue, 05 May 2009 13:43:32 -0400, J. Cliff Dyer wrote:

> Except for the ones that it doesn't cover, like strings:
> 
>>>> hasattr('abcd', '__iter__')
> False

True in Python3




More information about the Python-list mailing list