Skip to content

[3.14] Docs: Fix built-in function __self__ attribute descriptions (GH-159653) - #159711

Merged
ZeroIntensity merged 1 commit into
python:3.14from
miss-islington:backport-415ebff-3.14
Oct 19, 2026
Merged

ZeroIntensity merged 1 commit into
python:3.14from
miss-islington:backport-415ebff-3.14

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

Since PEP 3121, functions in C modules are bound to their module, so
their self is the module object. The inspect.isbuiltin docstring,
the inspect attribute table and the data model reference still say
it is None, as it was in Python 2. Describe it as the module object
the function was defined in, or None.
(cherry picked from commit 415ebff)

Co-authored-by: crypt0lith 118923461+crypt0lith@users.noreply.github.com

…GH-159653)

Since PEP 3121, functions in C modules are bound to their module, so
their __self__ is the module object. The inspect.isbuiltin docstring,
the inspect attribute table and the data model reference still say
it is None, as it was in Python 2. Describe it as the module object
the function was defined in, or None.
(cherry picked from commit 415ebffc47e8303d61cf97faf4ddb474334d736d)

Co-authored-by: crypt0lith <118923461+crypt0lith@users.noreply.github.com>
@ZeroIntensity
ZeroIntensity merged commit 8e62b08 into python:3.14 Oct 19, 2026
133 of 137 checks passed
@miss-islington
miss-islington deleted the backport-415ebff-3.14 branch October 19, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants