Skip to main content

Module intrinsics

Module intrinsics 

Source
Expand description

Python language-defined builtin names and the closed object member surface.

Audited Python 3.0 through 3.15. Unknown/out-of-range versions do not select version-dependent names. Identity is independent of availability and version. Sources: https://docs.python.org/3.15/library/functions.html, https://docs.python.org/3.15/library/exceptions.html and https://docs.python.org/3.15/reference/datamodel.html. Site-installed conveniences and platform-only names are not language rules.

Structs§

Builtin
ObjectMember
PythonVersion
VersionRange

Enums§

Availability
BuiltinKind

Constants§

BUILTINS
MEMBER_PRESERVING_CLASS_DECORATORS
Class decorators whose admitted stdlib identity preserves existing members. This says nothing about members the decorator may add.
NONE_TYPE_MEMBERS
None is a singleton with an immutable type. Attribute lookup inherits the object inventory and adds truth conversion; it cannot acquire new members. Sources: https://docs.python.org/3/reference/datamodel.html#none and https://github.com/python/cpython/blob/3.12/Objects/object.c (PyNone_Type).
OBJECT_MEMBERS
Complete for the audited version interval, including descriptors, not just methods.

Functions§

builtin
has_fixed_value_class_surface
Existing Python value-class policy shared by legacy and native member lookup. Their intrinsic dictionaries cannot acquire user-defined members; rebinding a name in the mutable builtins module is a separate operation.
implicit_base
The language rule is independent of the lexical binding named object.
none_type_member
object_member