From 009b25683b3159999adc0efd6843faccaebbfe5d Mon Sep 17 00:00:00 2001 From: mcaramba563 Date: Tue, 4 Nov 2025 12:30:15 +0300 Subject: [PATCH] pythongh-138700: Add :sorted: option to automatically sort glossary, fix __future__/__slots__ ordering --- Doc/glossary.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index c0ca0be304ebe4..ea6c2c5d5ab924 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -7,6 +7,7 @@ Glossary .. if you add new entries, keep the alphabetical sorting! .. glossary:: + :sorted: ``>>>`` The default Python prompt of the :term:`interactive` shell. Often @@ -565,6 +566,7 @@ Glossary Also see :ref:`annotations-howto` for best practices on working with annotations. + future statement __future__ A :ref:`future statement `, ``from __future__ import ``, directs the compiler to compile the current module using syntax or @@ -1231,6 +1233,7 @@ Glossary An acronym for the "read–eval–print loop", another name for the :term:`interactive` interpreter shell. + slots declaration __slots__ A declaration inside a class that saves memory by pre-declaring space for instance attributes and eliminating instance dictionaries. Though