summaryrefslogtreecommitdiff
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-03-18 15:41:51 +0000
committerGuido van Rossum <guido@python.org>2007-03-18 15:41:51 +0000
commit35e0295e5cf79db1fe5c3926064690b181f902f3 (patch)
tree64129082762a7f5e9ff17d310f7c617598de7c29 /Grammar
parent73c6e4eda41ad862c6ee5fae3b3f0bd58d789900 (diff)
downloadcpython-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/Grammar2
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