[Python-ideas] having a "iterable" built-in

Tarek Ziadé ziade.tarek at gmail.com
Thu Apr 30 09:00:35 CEST 2009

On Thu, Apr 30, 2009 at 12:20 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> hasattr(ob, '__iter__')

Right, that works under Python 3, (It won't cover str under Python 2 though)

Tarek Ziadé | http://ziade.org

More information about the Python-ideas mailing list