From: Juan Carlos Coruña <[EMAIL PROTECTED]>
> 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
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )