From: Andre Delfino Date: Sat, 6 Nov 2021 18:09:23 +0000 (-0300) Subject: bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH... X-Git-Tag: v3.11.0a3~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57457a1e5caf714034a75fe4f382b8b669ce6ed8;p=thirdparty%2FPython%2Fcpython.git bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379) --- diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 116a9a9d1d72..d92266e43b96 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.