[Python-checkins] bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379)

ambv webhook-mailer at python.org
Sat Nov 6 14:09:27 EDT 2021


https://github.com/python/cpython/commit/57457a1e5caf714034a75fe4f382b8b669ce6ed8
commit: 57457a1e5caf714034a75fe4f382b8b669ce6ed8
branch: main
author: Andre Delfino <adelfino at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-11-06T19:09:23+01:00
summary:

bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379)

files:
M Doc/library/__main__.rst

diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst
index 116a9a9d1d729..d92266e43b961 100644
--- a/Doc/library/__main__.rst
+++ b/Doc/library/__main__.rst
@@ -231,7 +231,7 @@ students::
     print(f'Found student: {search_students(student_name)}')
 
 Note that ``from .student import search_students`` is an example of a relative
-import.  This import style must be used when referencing modules within a
+import.  This import style can be used when referencing modules within a
 package.  For more details, see :ref:`intra-package-references` in the
 :ref:`tut-modules` section of the tutorial.
 



More information about the Python-checkins mailing list