[Zope] Checking variable types in Python Script

Florent Guillaume fg@nuxeo.com
Mon, 9 Sep 2002 16:36:27 +0000 (UTC)


Johan Carlsson [Torped] <johanc@torped.se> wrote:
> How do I use type() in Python scripts.
> It seems that type() is restricted code (why?)
> is there any special replacement for type checking?

You use same_type(foo, bar).

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com