From: Brett Cannon Date: Sat, 9 Apr 2005 03:03:00 +0000 (+0000) Subject: Add grammar change for allowing ``class B(): pass`` syntax. X-Git-Tag: v2.5a0~1832 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=629496b77c1b580da01d72604e907aa9b98d91bc;p=python Add grammar change for allowing ``class B(): pass`` syntax. --- diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index 7459412b90..a285c4ce34 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -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}