[Zope-dev] testing types in PythonScripts

2001-09-28 Thread Steve Alexander
I have a variable, f. The value of f might be a list, or it might be a string. I want to do different things to f depending what type it is. How do I check its type from a PythonScript? I can't use type(), as this opens up a security hole with Extension Classes, where the type is the class.

Re: [Zope-dev] testing types in PythonScripts

2001-09-28 Thread Florent Guillaume
Python Script has a same_type(x,y) function. Florent Guillaume Nuxeo Steve Alexander [EMAIL PROTECTED] wrote: I have a variable, f. The value of f might be a list, or it might be a string. I want to do different things to f depending what type it is. How do I check its type from a