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 09:08:56 EST 2008


On Sun, 2 Mar 2008 15:06:17 +0100
Preben Randhol <randhol+valid_for_reply_from_news 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



More information about the Python-list mailing list