1. Pypy
  2. Untitled project
  3. pypy

Commits

Amaury Forgeot d'Arc  committed 529d4c4

Fix grammar for class statement, and allow classes to have bases :-/

  • Participants
  • Parent commits cf11d95
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/interpreter/pyparser/data/Grammar3.2

View file
  • Ignore whitespace
 dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |
                   (test (comp_for | (',' test)* [','])) )
 
-classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
+classdef: 'class' NAME ['(' [arglist] ')'] ':' suite
 
 arglist: (argument ',')* (argument [',']
                          |'*' test (',' argument)* [',' '**' test]