Skip to content

Commit f760610

Browse files
andresdelfinomerwok
authored andcommitted
bpo-33832: Add "magic method" glossary entry (GH-7630)
1 parent dfd775a commit f760610

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/glossary.rst

+7
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ Glossary
663663
:term:`finder`. See :pep:`302` for details and
664664
:class:`importlib.abc.Loader` for an :term:`abstract base class`.
665665

666+
magic method
667+
.. index:: pair: magic; method
668+
669+
An informal synonym for :term:`special method`.
670+
666671
mapping
667672
A container object that supports arbitrary key lookups and implements the
668673
methods specified in the :class:`~collections.abc.Mapping` or
@@ -1004,6 +1009,8 @@ Glossary
10041009
(subscript) notation uses :class:`slice` objects internally.
10051010

10061011
special method
1012+
.. index:: pair: special; method
1013+
10071014
A method that is called implicitly by Python to execute a certain
10081015
operation on a type, such as addition. Such methods have names starting
10091016
and ending with double underscores. Special methods are documented in
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add glossary entry for 'magic method'.

0 commit comments

Comments
 (0)