From 5b3cebe9dfd5c8ee10234eb892517816edd5a36e Mon Sep 17 00:00:00 2001 From: Rasputin2 Date: Sat, 30 Dec 2023 15:44:08 -0600 Subject: [PATCH 1/3] Adds reference to PEP 318 standard in the compound_statements.rst after Function definitions section. --- Doc/reference/compound_stmts.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 7a735095bdecb2..ea041f3964bac8 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1368,6 +1368,8 @@ access the local variables of the function containing the def. See section Support for forward references within annotations by preserving annotations in a string form at runtime instead of eager evaluation. + :pep:`318` - Decorators for Functions and Methods + Function and method decorators were introduced. .. _class: From 5d673ecf8f04207674d0b4b041297bc7d0295967 Mon Sep 17 00:00:00 2001 From: Rasputin2 Date: Sun, 31 Dec 2023 14:19:44 -0600 Subject: [PATCH 2/3] Second Commit to Existing Pull Request to Add Period in Line 1365. --- Doc/reference/compound_stmts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ea041f3964bac8..ef03f5316a09d5 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1362,7 +1362,7 @@ access the local variables of the function containing the def. See section :pep:`526` - Syntax for Variable Annotations Ability to type hint variable declarations, including class - variables and instance variables + variables and instance variables. :pep:`563` - Postponed Evaluation of Annotations Support for forward references within annotations by preserving From 972d83fdbeef3f7c189d805323b8bf17885b2a6c Mon Sep 17 00:00:00 2001 From: "John D. McDonald" <43117960+Rasputin2@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:19:59 -0600 Subject: [PATCH 3/3] Update Doc/reference/compound_stmts.rst Co-authored-by: Hugo van Kemenade --- Doc/reference/compound_stmts.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ef03f5316a09d5..374404bf33abbe 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1370,6 +1370,7 @@ access the local variables of the function containing the def. See section :pep:`318` - Decorators for Functions and Methods Function and method decorators were introduced. + Class decorators were introduced in :pep:`3129`. .. _class: