[issue9117] class syntax not fully documented in reference manual

Mark Dickinson report at bugs.python.org
Tue Jun 29 18:52:40 CEST 2010


New submission from Mark Dickinson <dickinsm at gmail.com>:

Looking at:

http://docs.python.org/dev/py3k/reference/compound_stmts.html#class-definitions

I see:

classdef    ::=  [decorators] "class" classname [inheritance] ":" suite
inheritance ::=  "(" [expression_list] ")"
classname   ::=  identifier

this seems to be missing the keyword arguments that are now possible in a classdef (e.g. for specifying a metaclass).  I believe that *args and **kwargs are now also syntactically accepted in a class definition.

----------
assignee: docs at python
components: Documentation
messages: 108917
nosy: docs at python, mark.dickinson
priority: normal
severity: normal
status: open
title: class syntax not fully documented in reference manual
versions: Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9117>
_______________________________________


More information about the Python-bugs-list mailing list