SyntaxFix
Write A Post
Hire A Developer
Questions
type() ?
type()
>>> class A: ... def whoami(self): ... print(type(self).__name__) ... >>> >>> class B(A): ... pass ... >>> >>> >>> o = B() >>> o.whoami() 'B' >>>