How to check for instances of a class

Gabriel Genellina gagsl-py at yahoo.com.ar
Tue Nov 14 14:15:33 EST 2006


At Tuesday 14/11/2006 16:00, erokar at gmail.com 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.

isinstance


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list