11 Jan
2001
11 Jan
'01
3:14 p.m.
Yes, it works. Thanks. -----Mensaje original----- De: Evan Simpson [mailto:evan@4-am.com] Enviado el: jueves, 11 de enero de 2001 15:49 Para: Juan Carlos Coruña; zope@zope.org Asunto: Re: [Zope] type in python methods From: Juan Carlos Coruña <jcoruna@umd.es>
How can I compare the type of 2 variables in a python method?
The instruction "if type(var1) == type(var2): ...." doesn't work.
_.same_type(var1, var2) should do it. (Without the "_." in Scripts). Cheers, Evan @ digicool & 4-am