mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Add grammar change for allowing `class B(): pass
` syntax.
This commit is contained in:
parent
f4189916e3
commit
629496b77c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue