On 14 Nov 2006 11:00:53 -0800 [EMAIL PROTECTED] wrote: > Traversing a list of variables, I need to check wheter an element in > the list is an instance of a (user defined) class. What cind of > comparison operator can I use? Can't seem to find this in the > documentation. I anyone have an example it is much appreciated.
Use isinstance() <http://docs.python.org/lib/built-in-funcs.html>. You need something like >> isinstance(list_element, your_class) Dennis -- http://mail.python.org/mailman/listinfo/python-list