Commit 6cbb4c07 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

bpo-33832: Add "magic method" glossary entry (GH-7630)

(cherry picked from commit f760610b)
Co-authored-by: default avatarAndre Delfino <adelfino@gmail.com>
parent 5a331693
...@@ -490,6 +490,11 @@ Glossary ...@@ -490,6 +490,11 @@ Glossary
:meth:`load_module`. A loader is typically returned by a :meth:`load_module`. A loader is typically returned by a
:term:`finder`. See :pep:`302` for details. :term:`finder`. See :pep:`302` for details.
magic method
.. index:: pair: magic; method
An informal synonym for :term:`special method`.
mapping mapping
A container object that supports arbitrary key lookups and implements the A container object that supports arbitrary key lookups and implements the
methods specified in the :class:`~collections.Mapping` or methods specified in the :class:`~collections.Mapping` or
...@@ -698,6 +703,8 @@ Glossary ...@@ -698,6 +703,8 @@ Glossary
versions, :meth:`__getslice__` and :meth:`__setslice__`). versions, :meth:`__getslice__` and :meth:`__setslice__`).
special method special method
.. index:: pair: special; method
A method that is called implicitly by Python to execute a certain A method that is called implicitly by Python to execute a certain
operation on a type, such as addition. Such methods have names starting operation on a type, such as addition. Such methods have names starting
and ending with double underscores. Special methods are documented in and ending with double underscores. Special methods are documented in
......
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