cpython/Doc/reference
Miss Islington (bot) 8e62b0898a
[3.14] Docs: Fix built-in function __self__ attribute descriptions (GH-159653) (GH-159711)
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 415ebffc47)

Co-authored-by: crypt0lith <118923461+crypt0lith@users.noreply.github.com>
2026-10-19 19:20:33 +00:00
..
compound_stmts.rst [3.14] gh-141984: Add "exhausted" to glossary, link existing mentions (GH-157225) (GH-157272) 2026-09-10 17:16:23 +02:00
datamodel.rst [3.14] Docs: Fix built-in function __self__ attribute descriptions (GH-159653) (GH-159711) 2026-10-19 19:20:33 +00:00
executionmodel.rst [3.14] gh-135944: Add a "Runtime Components" Section to the Execution Model Docs (gh-135945) (#139509) 2025-10-07 19:19:42 +01:00
expressions.rst [3.14] gh-105812: Make use of the Sphinx deco role in documentation (GH-139598) (#154980) 2026-07-31 09:29:42 +00:00
grammar.rst [3.14] gh-143054: Disallow non-top-level Cut for now (GH-143622) (GH-143790) 2026-01-15 13:52:39 +01:00
import.rst [3.14] gh-148672: Document namespace subpackages inside regular packages (GH-150056) (#150730) 2026-06-01 19:30:29 +00:00
index.rst [3.14] Docs: split builtins to their own page from library (GH-156682) (#157441) 2026-09-13 13:02:13 -04:00
introduction.rst [3.14] gh-135676: Lexical analysis: Reword String literals and related sections (GH-135942) (#137048) 2025-07-23 19:23:25 +03:00
lexical_analysis.rst [3.14] Docs: Fix a typo in the 'Non-ASCII characters in names' section (GH-148043) (#148099) 2026-04-04 16:51:39 +00:00
simple_stmts.rst [3.14] gh-105812: Make use of the Sphinx deco role in documentation (GH-139598) (#154980) 2026-07-31 09:29:42 +00:00
toplevel_components.rst gh-130587: Add hand-written docs for non-OP tokens (GH-130588) 2025-03-19 16:42:11 +01:00