Runtime Data Attributes
type.__module__
Defining module metadata of a class under normal construction. Changing it does not move the class and in 3.13 removes the stored __firstlineno__ entry.
Formal Syntax & Structure
python syntaxpython
Cls.__module__Return Value
str
Usual metadata value under ordinary construction; manually assigned metadata can differ. See description.
Working Example
Example Snippetpython
class C: passprint(C.__module__)