Skip to content

[2.7] bpo-33832: Add "magic method" glossary entry (GH-7630) #12575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ Glossary
:meth:`load_module`. A loader is typically returned by a
:term:`finder`. See :pep:`302` for details.

magic method
.. index:: pair: magic; method

An informal synonym for :term:`special method`.

mapping
A container object that supports arbitrary key lookups and implements the
methods specified in the :class:`~collections.Mapping` or
Expand Down Expand Up @@ -698,6 +703,8 @@ Glossary
versions, :meth:`__getslice__` and :meth:`__setslice__`).

special method
.. index:: pair: special; method

A method that is called implicitly by Python to execute a certain
operation on a type, such as addition. Such methods have names starting
and ending with double underscores. Special methods are documented in
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add glossary entry for 'magic method'.