This commit is contained in:
Benjamin Peterson 2008-06-28 23:06:49 +00:00
parent 7416a4cd2a
commit 6e4856a146
1 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ Summarizing:
compound_stmt: `if_stmt`
: | `while_stmt`
: | `for_stmt`
: | `try_stmt`
: | `try_stmt
: | `with_stmt`
: | `funcdef`
: | `classdef`
@ -538,10 +538,10 @@ mutable values there can lead to unexpected results. For :term:`new-style
class`\es, descriptors can be used to create instance variables with different
implementation details.
Class definitions, like function definitions, may be wrapped by one or
more :term:`decorator` expressions. The evaluation rules for the
decorator expressions are the same as for functions. The result must
be a class object, which is then bound to the class name.
Class definitions, like function definitions, may be wrapped by one or more
:term:`decorator` expressions. The evaluation rules for the decorator
expressions are the same as for functions. The result must be a class object,
which is then bound to the class name.
.. rubric:: Footnotes