diff options
author | Guido van Rossum <guido@python.org> | 2007-03-18 15:41:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-03-18 15:41:51 +0000 |
commit | 35e0295e5cf79db1fe5c3926064690b181f902f3 (patch) | |
tree | 64129082762a7f5e9ff17d310f7c617598de7c29 /Grammar | |
parent | 73c6e4eda41ad862c6ee5fae3b3f0bd58d789900 (diff) | |
download | cpython-35e0295e5cf79db1fe5c3926064690b181f902f3.tar.gz |
Implement PEP 3115 -- new metaclass syntax and semantics.
The compiler package hasn't been updated yet; test_compiler.py fails.
Otherwise all tests seem to be passing now. There are no occurrences
of __metaclass__ left in the standard library.
Docs have not been updated.
Diffstat (limited to 'Grammar')
-rw-r--r-- | Grammar/Grammar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar index 02777994bc..0e459ca71f 100644 --- a/Grammar/Grammar +++ b/Grammar/Grammar @@ -119,7 +119,7 @@ exprlist: expr (',' expr)* [','] testlist: test (',' test)* [','] dictsetmaker: (test ':' test (',' test ':' test)* [',']) | (test (',' test)* [',']) -classdef: 'class' NAME ['(' [testlist] ')'] ':' suite +classdef: 'class' NAME ['(' [arglist] ')'] ':' suite arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test) argument: test [gen_for] | test '=' test # Really [keyword '='] test |