Browse Source

class definitions only get argument lists (closes #27042)

pull/40/head
Benjamin Peterson 10 years ago
parent
commit
54044d605f
  1. 2
      Doc/reference/compound_stmts.rst

2
Doc/reference/compound_stmts.rst

@ -604,7 +604,7 @@ A class definition defines a class object (see section :ref:`types`):
.. productionlist::
classdef: [`decorators`] "class" `classname` [`inheritance`] ":" `suite`
inheritance: "(" [`parameter_list`] ")"
inheritance: "(" [`argument_list`] ")"
classname: `identifier`
A class definition is an executable statement. The inheritance list usually

Loading…
Cancel
Save