Get fully qualified class name of an object in python

Posted by Hanno Stock on Stack Overflow See other posts from Stack Overflow or by Hanno Stock
Published on 2010-01-07T11:50:28Z Indexed on 2010/04/01 23:53 UTC
Read the original article Hit count: 519

Filed under:
|

For logging purposes I want to retrieve the fully qualified class name of a Python object. (With fully qualified I mean the class name including the package and module name.)

I know about x.__class__.__name__, but is there a simple method to get the package and module?

© Stack Overflow or respective owner

Related posts about python

Related posts about python-datamodel