File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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 number Diff line number Diff line change 1+ Add glossary entry for 'magic method'.
You can’t perform that action at this time.
0 commit comments