From: Emily Morehouse Date: Tue, 8 Oct 2024 01:14:34 +0000 (-0600) Subject: [3.13] gh-125072: Add label for assignment expressions; update tracked section for... X-Git-Tag: v3.13.1~371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a1b9d52546cbb0903f9cef4a1f83e3528479e85;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-125072: Add label for assignment expressions; update tracked section for assignment expression topic (GH-125074) (#125077) (cherry picked from commit 447a15190d6d766004b77619ba43e44256e348e2) --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index ab72ad49d041..decde0d297cf 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1809,6 +1809,8 @@ returns a boolean value regardless of the type of its argument single: named expression pair: assignment; expression +.. _assignment-expressions: + Assignment expressions ====================== diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 6138246ccb4a..5d27c8ff5740 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -334,8 +334,8 @@ class MiscNews(SphinxDirective): # Support for building "topic help" for pydoc pydoc_topic_labels = [ - 'assert', 'assignment', 'async', 'atom-identifiers', 'atom-literals', - 'attribute-access', 'attribute-references', 'augassign', 'await', + 'assert', 'assignment', 'assignment-expressions', 'async', 'atom-identifiers', + 'atom-literals', 'attribute-access', 'attribute-references', 'augassign', 'await', 'binary', 'bitwise', 'bltin-code-objects', 'bltin-ellipsis-object', 'bltin-null-object', 'bltin-type-objects', 'booleans', 'break', 'callable-types', 'calls', 'class', 'comparisons', 'compound',