Mercurial > cpython-lru_cache-weakref
diff Parser/Python.asdl @ 41226:19f7ff443718
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 18 Mar 2007 15:41:51 +0000 |
| parents | 30e5cb3a55ac |
| children | 060c79f6d919 |
line wrap: on
line diff
--- a/Parser/Python.asdl Sun Mar 18 03:42:15 2007 +0000 +++ b/Parser/Python.asdl Sun Mar 18 15:41:51 2007 +0000 @@ -11,7 +11,12 @@ stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorators, expr? returns) - | ClassDef(identifier name, expr* bases, stmt* body) + | ClassDef(identifier name, + expr* bases, + keyword* keywords, + expr? starargs, + expr? kwargs, + stmt* body) | Return(expr? value) | Delete(expr* targets)
