10 May
2002
10 May
'02
10:55 a.m.
Hi Allen, if you want to check the type of a variable use an external python script like: import string def getType(x): if type(x) == type([]): return "type(%s)=list" % (x) if type(x) == type(""): return "type(%s)=string" % (x) if type(x) == type(1): return "type(%s)=integer" % (x) if type(x) == type({1:'s'}): return "type(%s)=dictionary" % (x) if type(x) == type((1)): return "type(%s)=tuple" % (x) if type(x) == type(string): return "type(%s)=module" % (x) else: return "type(%s)=object o. รค." % (x) I took this idea from some earlier postings to the list. Greetings, Elena