how to find out if an object is a class?

szczepiq szczepiq at gmail.com
Thu Aug 7 17:36:37 EDT 2008


Pardon me for most likely a dummy question but how do I find out if an
object is a class?

I need something like that:

def foo(self, obj):
  if (obj is a class):
    some stuff



More information about the Python-list mailing list