testing for class of instance

Albert Wagner alwagner at tcac.net
Sat May 12 23:32:10 EDT 2001


How do I test for the class of an instance?  e.g., I used to test for a 
dictionary:

if type(aContainer) == type({}):

However, this seems awkward and wasteful.



More information about the Python-list mailing list