Add grammar change for allowing ``class B(): pass`` syntax.
This commit is contained in:
parent
f4189916e3
commit
629496b77c
|
@ -439,7 +439,7 @@ A class definition defines a class object (see section~\ref{types}):
|
|||
{"class" \token{classname} [\token{inheritance}] ":"
|
||||
\token{suite}}
|
||||
\production{inheritance}
|
||||
{"(" \token{expression_list} ")"}
|
||||
{"(" [\token{expression_list}] ")"}
|
||||
\production{classname}
|
||||
{\token{identifier}}
|
||||
\end{productionlist}
|
||||
|
|
Loading…
Reference in New Issue