From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:58:52 +0000 (+0200) Subject: [3.14] Docs: add dunder and walrus to the glossary (GH-137430) (#137434) X-Git-Tag: v3.14.0rc2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25ae1af55e972a84506d000c03bb35e2033c0156;p=thirdparty%2FPython%2Fcpython.git [3.14] Docs: add dunder and walrus to the glossary (GH-137430) (#137434) Co-authored-by: Ned Batchelder --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index b7bd547d38fd..841c77b662f7 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -435,6 +435,11 @@ Glossary with :term:`abstract base classes `.) Instead, it typically employs :func:`hasattr` tests or :term:`EAFP` programming. + dunder + An informal short-hand for "double underscore", used when talking about a + :term:`special method`. For example, ``__init__`` is often pronounced + "dunder init". + EAFP Easier to ask for forgiveness than permission. This common Python coding style assumes the existence of valid keys or attributes and catches @@ -1472,6 +1477,11 @@ Glossary A computer defined entirely in software. Python's virtual machine executes the :term:`bytecode` emitted by the bytecode compiler. + walrus operator + A light-hearted way to refer to the :ref:`assignment expression + ` operator ``:=`` because it looks a bit like a + walrus if you turn your head. + Zen of Python Listing of Python design principles and philosophies that are helpful in understanding and using the language. The listing can be found by typing