Add grammar change for allowing ``class B(): pass`` syntax.

This commit is contained in:
Brett Cannon 2005-04-09 03:03:00 +00:00
parent f4189916e3
commit 629496b77c
1 changed files with 1 additions and 1 deletions

View File

@ -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}