Can one get "for x in y" to work for non builtin classes?

Preben Randhol randhol+valid_for_reply_from_news at pvv.org
Sun Mar 2 11:19:07 EST 2008


On Sun, 2 Mar 2008 08:09:24 -0800 (PST)
castironpi at gmail.com wrote:

> On Mar 2, 8:15 am, Giles Brown <giles_br... at hotmail.com> wrote:

> > http://docs.python.org/lib/typeiter.html
> 
> Be careful on your descision to return an ordered iterator or not--
> that is, whether it iterates over the dictionary or the list (if I
> understand you correctly).  If the order's unimportant then please
> disregard.

I was thinking to iterate over the list which contains the uniq_ids as
order is important :-)

Thanks!

Preben



More information about the Python-list mailing list