Skip to content
Open
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
6 changes: 5 additions & 1 deletion Doc/reference/simple_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,11 @@
.. attribute:: module.__all__
:no-typesetting:

The *public names* defined by a module are determined by checking the module's

Check warning on line 835 in Doc/reference/simple_stmts.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

undefined label: 'lexical-names-nonascii' [ref.ref]
namespace for a variable named ``__all__``; if defined, it must be a sequence
of strings which are names defined or imported by that module. The names
of strings which are names defined or imported by that module.
Names containing non-ASCII characters must be in the `normalization form`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: repetition:
s/must be in the normalization form NFKC / must be in the Normalization Form KC/

or even
s/must be in the normalization form NFKC / must be in NFKC/

First reads well to me

NFKC; see :ref:`lexical-names-nonascii` for details. The names
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NFKC; see :ref:`lexical-names-nonascii` for details. The names
NFKC. The names

It does not exist in 3.13

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given in ``__all__`` are all considered public and are required to exist. If
``__all__`` is not defined, the set of public names includes all names found
in the module's namespace which do not begin with an underscore character
Expand Down Expand Up @@ -868,6 +870,8 @@

.. audit-event:: import module,filename,sys.path,sys.meta_path,sys.path_hooks import

.. _normalization form: https://www.unicode.org/reports/tr15/#Norm_Forms

.. _future:

Future statements
Expand Down
Loading