Runtime Data Attributes
module.__doc__
Module documentation; None if absent under normal construction. A dynamically created module may supply its documentation explicitly.
Formal Syntax & Structure
python syntaxpython
module.__doc__Return Value
str | None
Value exposed by this attribute; availability and mutability depend on the owner as described.
Working Example
Example Snippetpython
from types import ModuleTypem = ModuleType('demo','Module help.')print(m.__doc__)