This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: [doc] Inconsistent / confusing documentation regarding importing submodules
Type: enhancement Stage:
Components: Documentation Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Dirk Herrmann, docs@python
Priority: normal Keywords:

Created on 2021-02-05 17:33 by Dirk Herrmann, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg386532 - (view) Author: Dirk Herrmann (Dirk Herrmann) Date: 2021-02-05 17:33
In the language reference, section "7.11 The import statement" is is explained in the example section:

   import         # imported, foo bound locally

When looking at "5.3. Searching", it is stated that regarding

   In this case, Python first tries to import foo, then, and finally

I find this confusing.  Assuming that 5.3 is correct, the examples in 7.11 could be improved, like, for the sample line mentioned above:

   import         # foo, and imported, foo bound locally
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87304
2021-02-05 17:33:30Dirk Herrmanncreate