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: 542
python
|python-datamodel
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