Skip to content

Commit

Permalink
bpo-39452: [doc] Change "must" to "can" on relative import style in `…
Browse files Browse the repository at this point in the history
…__main__` (pythonGH-29379)
  • Loading branch information
andresdelfino authored Nov 6, 2021
1 parent 77a2c77 commit 57457a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/__main__.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 57457a1

Please sign in to comment.