From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:30:57 +0000 (-0700) Subject: gh-91541: Fix error in example in modules tutorial (GH-91634) X-Git-Tag: v3.10.5~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5636f3a0eb86932175c26fe602e0f53b6d3cbb9;p=thirdparty%2FPython%2Fcpython.git gh-91541: Fix error in example in modules tutorial (GH-91634) (cherry picked from commit efbc668183400597070356a2df2fbab114a53cb3) Co-authored-by: 180909 <734461790@qq.com> --- diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index f1d4957e37eb..47c1f1877d69 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -504,7 +504,7 @@ code:: __all__ = ["echo", "surround", "reverse"] This would mean that ``from sound.effects import *`` would import the three -named submodules of the :mod:`sound` package. +named submodules of the :mod:`sound.effects` package. If ``__all__`` is not defined, the statement ``from sound.effects import *`` does *not* import all submodules from the package :mod:`sound.effects` into the