The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Python Glossary: terms starting with letter M
By Guest on 13th November 2022 07:41:50 PM | Syntax: PYTHON | Views: 304



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. Glossary - M
  2. ********
  3.  
  4. magic method
  5.    An informal synonym for *special method*.
  6.  
  7. mapping
  8.    A container object that supports arbitrary key lookups and
  9.    implements the methods specified in the "collections.abc.Mapping"
  10.    or "collections.abc.MutableMapping" abstract base classes.
  11.    Examples include "dict", "collections.defaultdict",
  12.    "collections.OrderedDict" and "collections.Counter".
  13.  
  14. meta path finder
  15.    A *finder* returned by a search of "sys.meta_path".  Meta path
  16.    finders are related to, but different from *path entry finders*.
  17.  
  18.    See "importlib.abc.MetaPathFinder" for the methods that meta path
  19.    finders implement.
  20.  
  21. metaclass
  22.    The class of a class.  Class definitions create a class name, a
  23.    class dictionary, and a list of base classes.  The metaclass is
  24.    responsible for taking those three arguments and creating the
  25.    class.  Most object oriented programming languages provide a
  26.    default implementation.  What makes Python special is that it is
  27.    possible to create custom metaclasses.  Most users never need this
  28.    tool, but when the need arises, metaclasses can provide powerful,
  29.    elegant solutions.  They have been used for logging attribute
  30.    access, adding thread-safety, tracking object creation,
  31.    implementing singletons, and many other tasks.
  32.  
  33.    More information can be found in Metaclasses.
  34.  
  35. method
  36.    A function which is defined inside a class body.  If called as an
  37.    attribute of an instance of that class, the method will get the
  38.    instance object as its first *argument* (which is usually called
  39.    "self"). See *function* and *nested scope*.
  40.  
  41. method resolution order
  42.    Method Resolution Order is the order in which base classes are
  43.    searched for a member during lookup. See The Python 2.3 Method
  44.    Resolution Order for details of the algorithm used by the Python
  45.    interpreter since the 2.3 release.
  46.  
  47. module
  48.    An object that serves as an organizational unit of Python code.
  49.    Modules have a namespace containing arbitrary Python objects.
  50.    Modules are loaded into Python by the process of *importing*.
  51.  
  52.    See also *package*.
  53.  
  54. module spec
  55.    A namespace containing the import-related information used to load
  56.    a module. An instance of "importlib.machinery.ModuleSpec".
  57.  
  58. MRO
  59.    See *method resolution order*.
  60.  
  61. mutable
  62.    Mutable objects can change their value but keep their "id()".  See
  63.    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
  • Recent Pastes