Kaydet (Commit) 245c765d authored tarafından Georg Brandl's avatar Georg Brandl

merge with 3.3

...@@ -529,6 +529,8 @@ Glossary ...@@ -529,6 +529,8 @@ Glossary
have a namespace containing arbitrary Python objects. Modules are loaded have a namespace containing arbitrary Python objects. Modules are loaded
into Python by the process of :term:`importing`. into Python by the process of :term:`importing`.
See also :term:`package`.
MRO MRO
See :term:`method resolution order`. See :term:`method resolution order`.
...@@ -567,6 +569,8 @@ Glossary ...@@ -567,6 +569,8 @@ Glossary
and specifically are not like a :term:`regular package` because they and specifically are not like a :term:`regular package` because they
have no ``__init__.py`` file. have no ``__init__.py`` file.
See also :term:`module`.
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
...@@ -588,10 +592,12 @@ Glossary ...@@ -588,10 +592,12 @@ Glossary
class`. class`.
package package
A Python module which can contain submodules or recursively, A Python :term:`module` which can contain submodules or recursively,
subpackages. Technically, a package is a Python module with an subpackages. Technically, a package is a Python module with an
``__path__`` attribute. ``__path__`` attribute.
See also :term:`regular package` and :term:`namespace package`.
parameter parameter
A named entity in a :term:`function` (or method) definition that A named entity in a :term:`function` (or method) definition that
specifies an :term:`argument` (or in some cases, arguments) that the specifies an :term:`argument` (or in some cases, arguments) that the
...@@ -737,6 +743,8 @@ Glossary ...@@ -737,6 +743,8 @@ Glossary
A traditional :term:`package`, such as a directory containing an A traditional :term:`package`, such as a directory containing an
``__init__.py`` file. ``__init__.py`` file.
See also :term:`namespace package`.
__slots__ __slots__
A declaration inside a class that saves memory by pre-declaring space for A declaration inside a class that saves memory by pre-declaring space for
instance attributes and eliminating instance dictionaries. Though instance attributes and eliminating instance dictionaries. Though
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment