diff --git a/pep-0000.txt b/pep-0000.txt index 424b94550..7b8888031 100644 --- a/pep-0000.txt +++ b/pep-0000.txt @@ -84,7 +84,6 @@ Index by Category SA 3121 Extension Module Initialization & Finalization von Löwis SA 3123 Making PyObject_HEAD conform to standard C von Löwis SA 3127 Integer Literal Support and Syntax Maupin - SA 3129 Class Decorators Winter SA 3131 Supporting Non-ASCII Identifiers von Löwis Open PEPs (under consideration) @@ -189,6 +188,7 @@ Index by Category SF 3107 Function Annotations Winter, Lownds SF 3113 Removal of Tuple Parameter Unpacking Cannon SF 3114 Renaming iterator.next() to .__next__() Yee + SF 3129 Class Decorators Winter SF 3132 Extended Iterable Unpacking Brandl Empty PEPs (or containing only an abstract) @@ -499,7 +499,7 @@ Numerical Index SR 3126 Remove Implicit String Concatenation Jewett SA 3127 Integer Literal Support and Syntax Maupin SR 3128 BList: A Faster List-like Type Stutzbach - SA 3129 Class Decorators Winter + SF 3129 Class Decorators Winter SR 3130 Access to Current Module/Class/Function Jewett SA 3131 Supporting Non-ASCII Identifiers von Löwis SF 3132 Extended Iterable Unpacking Brandl diff --git a/pep-3129.txt b/pep-3129.txt index 974a8ee92..0e32005b8 100644 --- a/pep-3129.txt +++ b/pep-3129.txt @@ -3,7 +3,7 @@ Title: Class Decorators Version: $Revision$ Last-Modified: $Date$ Author: Collin Winter -Status: Accepted +Status: Final Type: Standards Track Content-Type: text/x-rst Created: 1-May-2007 @@ -47,7 +47,7 @@ Semantics The semantics and design goals of class decorators are the same as for function decorators ([#semantics]_, [#goals]_); the only difference is that you're decorating a class instead of a function. -The following two snippets are semantically identical: :: +The following two snippets are semantically identical:: class A: pass @@ -66,7 +66,7 @@ Implementation ============== Adapating Python's grammar to support class decorators requires -modifying two rules and adding a new rule :: +modifying two rules and adding a new rule:: funcdef: [decorators] 'def' NAME parameters ['->' test] ':' suite @@ -91,6 +91,15 @@ A reference implementation [#implementation]_ has been provided by Jack Diederich. +Acceptance +========== + +There was virtually no discussion following the posting of this PEP, +meaning that everyone agreed it should be accepted. + +The patch was committed to Subversion as revision 55430. + + References ==========