python get class name from class constructor code example
Example 1: python get type class name
type(x).__name__
Example 2: class python
class MyClass(object):
def __init__(self, x):
self.x = x
type(x).__name__
class MyClass(object):
def __init__(self, x):
self.x = x