Skip to content

Commit 009b256

Browse files
committed
gh-138700: Add :sorted: option to automatically sort glossary, fix __future__/__slots__ ordering
1 parent a716091 commit 009b256

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/glossary.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Glossary
77
.. if you add new entries, keep the alphabetical sorting!
88
99
.. glossary::
10+
:sorted:
1011

1112
``>>>``
1213
The default Python prompt of the :term:`interactive` shell. Often
@@ -565,6 +566,7 @@ Glossary
565566
Also see :ref:`annotations-howto`
566567
for best practices on working with annotations.
567568

569+
future statement
568570
__future__
569571
A :ref:`future statement <future>`, ``from __future__ import <feature>``,
570572
directs the compiler to compile the current module using syntax or
@@ -1231,6 +1233,7 @@ Glossary
12311233
An acronym for the "read–eval–print loop", another name for the
12321234
:term:`interactive` interpreter shell.
12331235

1236+
slots declaration
12341237
__slots__
12351238
A declaration inside a class that saves memory by pre-declaring space for
12361239
instance attributes and eliminating instance dictionaries. Though

0 commit comments

Comments
 (0)