[ python-Bugs-960448 ] grammar for "class" inheritance production
slightly wrong
SourceForge.net
noreply at sourceforge.net
Wed Jun 2 09:01:02 EDT 2004
Bugs item #960448, was opened at 2004-05-26 00:20
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=960448&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: grammar for "class" inheritance production slightly wrong
Initial Comment:
http://www.python.org/dev/doc/devel/ref/class.html lists
the grammar for a class statement, including an optional
inheritance production of "(" [expression_list] ")".
expression_list is *not* optional. If the inheritance
production (the parentheses) is present, then the
expression list must be present (non-empty) as well.
"""
>>> class C():
SyntaxError: invalid syntax
"""
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-06-02 15:01
Message:
Logged In: YES
user_id=21627
Thanks for the report. Fixed in ref7.tex 1.38 and 1.35.16.2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=960448&group_id=5470
More information about the Python-bugs-list
mailing list