Runtime Data Attributes
type.__name__
Short class name. Mutable for ordinary user-defined classes, but many built-in classes reject metadata changes.
Formal Syntax & Structure
python syntaxpython
Cls.__name__Return Value
str
Value exposed by this attribute; availability and mutability depend on the owner as described.
Working Example
Example Snippetpython
class C: passprint(C.__name__)