Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/classes.rst @ 55723:ffcfc990e4ca legacy-trunk
#6725: spell "namespace" consistently.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Mon, 24 Aug 2009 17:20:40 +0000 |
| parents | af110a48d154 |
| children | ed7dbc922d05 |
line wrap: on
line diff
--- a/Doc/tutorial/classes.rst Mon Aug 24 17:14:29 2009 +0000 +++ b/Doc/tutorial/classes.rst Mon Aug 24 17:20:40 2009 +0000 @@ -50,8 +50,8 @@ .. _tut-scopes: -Python Scopes and Name Spaces -============================= +Python Scopes and Namespaces +============================ Before introducing classes, I first have to tell you something about Python's scope rules. Class definitions play some neat tricks with namespaces, and you @@ -86,7 +86,7 @@ :keyword:`del` statement. For example, ``del modname.the_answer`` will remove the attribute :attr:`the_answer` from the object named by ``modname``. -Name spaces are created at different moments and have different lifetimes. The +Namespaces are created at different moments and have different lifetimes. The namespace containing the built-in names is created when the Python interpreter starts up, and is never deleted. The global namespace for a module is created when the module definition is read in; normally, module namespaces also last
