revert part of cefe4f38fa0e, as agreed with Éric

This commit is contained in:
Sandro Tosi 2012-01-17 18:32:02 +01:00
parent 3b6a31412f
commit 03c6110b21
1 changed files with 4 additions and 5 deletions

View File

@ -519,11 +519,10 @@ Glossary
nested scope nested scope
The ability to refer to a variable in an enclosing definition. For The ability to refer to a variable in an enclosing definition. For
instance, a function defined inside another function can refer to instance, a function defined inside another function can refer to
variables in the outer function. Note that nested scopes by default work variables in the outer function. Note that nested scopes work only for
only for reference and not for assignment. Local variables both read and reference and not for assignment which will always write to the innermost
write in the innermost scope. Likewise, global variables read and write scope. In contrast, local variables both read and write in the innermost
to the global namespace. The :keyword:`nonlocal` allows writing to outer scope. Likewise, global variables read and write to the global namespace.
scopes.
new-style class new-style class
Any class which inherits from :class:`object`. This includes all built-in Any class which inherits from :class:`object`. This includes all built-in