mirror of https://github.com/python/cpython.git
#6725: spell "namespace" consistently.
This commit is contained in:
parent
87296628f1
commit
0cfbd65975
|
@ -50,8 +50,8 @@ need for two different argument passing mechanisms as in Pascal.
|
||||||
|
|
||||||
.. _tut-scopes:
|
.. _tut-scopes:
|
||||||
|
|
||||||
Python Scopes and Name Spaces
|
Python Scopes and Namespaces
|
||||||
=============================
|
============================
|
||||||
|
|
||||||
Before introducing classes, I first have to tell you something about Python's
|
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
|
scope rules. Class definitions play some neat tricks with namespaces, and you
|
||||||
|
@ -86,7 +86,7 @@ attributes is possible. Module attributes are writable: you can write
|
||||||
:keyword:`del` statement. For example, ``del modname.the_answer`` will remove
|
:keyword:`del` statement. For example, ``del modname.the_answer`` will remove
|
||||||
the attribute :attr:`the_answer` from the object named by ``modname``.
|
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
|
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
|
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
|
when the module definition is read in; normally, module namespaces also last
|
||||||
|
|
Loading…
Reference in New Issue