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

Giles Brown giles_brown at hotmail.com
Sun Mar 2 09:15:54 EST 2008


On Mar 2, 2:08 pm, Preben Randhol <randhol
+valid_for_reply_from_n... at pvv.org> wrote:
> On Sun, 2 Mar 2008 15:06:17 +0100
>
> Preben Randhol <randhol+valid_for_reply_from_n... at pvv.org> wrote:
> >    class dbase(list):
>
> Sorry the definition of the class is:
>
>         class dbase(object):
>
> it doesn't derive from the list class.
>
> Preben

http://docs.python.org/lib/typeiter.html



More information about the Python-list mailing list