Runtime Utility Modules

types

Expose runtime type names, class-creation utilities and helper types such as read-only mapping proxies and simple attribute namespaces.

Formal Syntax & Structure

python syntaxpython
types

Return Value

module

Module object accessed through import.

Working Example

Example Snippetpython
import typesdef f(): passprint(isinstance(f,types.FunctionType))
Python Reference