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 @@ -490,6 +490,11 @@ Glossary
490
490
:meth: `load_module `. A loader is typically returned by a
491
491
:term: `finder `. See :pep: `302 ` for details.
492
492
493
+ magic method
494
+ .. index :: pair: magic; method
495
+
496
+ An informal synonym for :term: `special method `.
497
+
493
498
mapping
494
499
A container object that supports arbitrary key lookups and implements the
495
500
methods specified in the :class: `~collections.Mapping ` or
@@ -698,6 +703,8 @@ Glossary
698
703
versions, :meth: `__getslice__ ` and :meth: `__setslice__ `).
699
704
700
705
special method
706
+ .. index :: pair: special; method
707
+
701
708
A method that is called implicitly by Python to execute a certain
702
709
operation on a type, such as addition. Such methods have names starting
703
710
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