Do you want the name of the class as a string?
instance.__class__.__name__
from: https://stackoverflow.com/questions/510972/getting-the-class-name-of-an-instance
No comments:
Post a Comment