On Mar 6, 7:10 am, Guillermo <[EMAIL PROTECTED]> wrote: > Hello, > > This is my first post here. I'm getting my feet wet with Python and I > need to know how can I check whether a variable is of type dictionary. > > Something like this: > > if isdict(a) then print "a is a dictionary" > > Regards, > > Guillermo
Or if type(a)==type({}): print 'a is a dictionary' -- http://mail.python.org/mailman/listinfo/python-list