Reputation: 189594
The title says it mostly.
If I have an object in Python and want to access the name of the class it is instantiated from is there a standard way to do this?
Upvotes: 2
Views: 250
Reputation: 2050
obj.__class__.__name__
Upvotes: 19