From 0f14fc1a7cb2ea0012d0a943e4460acdee2108d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 19 Oct 2018 20:31:15 -0300 Subject: [PATCH] bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294) --- Doc/reference/compound_stmts.rst | 10 +++++++++- Doc/reference/simple_stmts.rst | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ddc796adcd..638e1604c1 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -681,8 +681,14 @@ can be used to create instance variables with different implementation details. .. seealso:: - :pep:`3115` - Metaclasses in Python 3 + :pep:`3115` - Metaclasses in Python 3000 + The proposal that changed the declaration of metaclasses to the current + syntax, and the semantics for how classes with metaclasses are + constructed. + :pep:`3129` - Class Decorators + The proposal that added class decorators. Function and method decorators + were introduced in :pep:`318`. .. _async: @@ -809,6 +815,8 @@ coroutine. .. seealso:: :pep:`492` - Coroutines with async and await syntax + The proposal that made coroutines a proper standalone concept in Python, + and added supporting syntax. .. rubric:: Footnotes diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index bb1eea66f9..f98721cd65 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -353,8 +353,15 @@ target, then the interpreter evaluates the target except for the last .. seealso:: - :pep:`526` - Variable and attribute annotation syntax + :pep:`526` - Syntax for Variable Annotations + The proposal that added syntax for annotating the types of variables + (including class variables and instance variables), instead of expressing + them through comments. + :pep:`484` - Type hints + The proposal that added the :mod:`typing` module to provide a standard + syntax for type annotations that can be used in static analysis tools and + IDEs. .. _assert: -- 2.40.0