- Glossary - M
- ********
- magic method
- An informal synonym for *special method*.
- mapping
- A container object that supports arbitrary key lookups and
- implements the methods specified in the "collections.abc.Mapping"
- or "collections.abc.MutableMapping" abstract base classes.
- Examples include "dict", "collections.defaultdict",
- "collections.OrderedDict" and "collections.Counter".
- meta path finder
- A *finder* returned by a search of "sys.meta_path". Meta path
- finders are related to, but different from *path entry finders*.
- See "importlib.abc.MetaPathFinder" for the methods that meta path
- finders implement.
- metaclass
- The class of a class. Class definitions create a class name, a
- class dictionary, and a list of base classes. The metaclass is
- responsible for taking those three arguments and creating the
- class. Most object oriented programming languages provide a
- default implementation. What makes Python special is that it is
- possible to create custom metaclasses. Most users never need this
- tool, but when the need arises, metaclasses can provide powerful,
- elegant solutions. They have been used for logging attribute
- access, adding thread-safety, tracking object creation,
- implementing singletons, and many other tasks.
- More information can be found in Metaclasses.
- method
- A function which is defined inside a class body. If called as an
- attribute of an instance of that class, the method will get the
- instance object as its first *argument* (which is usually called
- "self"). See *function* and *nested scope*.
- method resolution order
- Method Resolution Order is the order in which base classes are
- searched for a member during lookup. See The Python 2.3 Method
- Resolution Order for details of the algorithm used by the Python
- interpreter since the 2.3 release.
- module
- An object that serves as an organizational unit of Python code.
- Modules have a namespace containing arbitrary Python objects.
- Modules are loaded into Python by the process of *importing*.
- See also *package*.
- module spec
- A namespace containing the import-related information used to load
- a module. An instance of "importlib.machinery.ModuleSpec".
- MRO
- See *method resolution order*.
- mutable
- Mutable objects can change their value but keep their "id()". See
- also *immutable*.
Python software and documentation are licensed under the PSF License Agreement.
Starting with Python 3.8.6, examples, recipes, and other code in the documentation are dual licensed under the PSF License Agreement and the Zero-Clause BSD license.
Some software incorporated into Python is under different licenses. The licenses are listed with code falling under that license. See Licenses and Acknowledgements for Incorporated Software for an incomplete list of these licenses.
Python and it's documentation is:
Copyright © 2001-2022 Python Software Foundation. All rights reserved.
Copyright © 2000 BeOpen.com. All rights reserved.
Copyright © 1995-2000 Corporation for National Research Initiatives. All rights reserved.
Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved.
See History and License for complete license and permissions information:
https://docs.python.org/3/license.html#psf-license