Checking if a variable is a dictionary

Guillermo guillermo.listas at googlemail.com
Thu Mar 6 07:10:47 EST 2008


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



More information about the Python-list mailing list