mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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}] ":"
|
{"class" \token{classname} [\token{inheritance}] ":"
|
||||||
\token{suite}}
|
\token{suite}}
|
||||||
\production{inheritance}
|
\production{inheritance}
|
||||||
{"(" \token{expression_list} ")"}
|
{"(" [\token{expression_list}] ")"}
|
||||||
\production{classname}
|
\production{classname}
|
||||||
{\token{identifier}}
|
{\token{identifier}}
|
||||||
\end{productionlist}
|
\end{productionlist}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue