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.

Author Dirk Herrmann
Recipients Dirk Herrmann, docs@python
Date 2021-02-05.17:33:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612546411.0.0.965001930731.issue43138@roundup.psfhosted.org>
In-reply-to
Content
In the language reference, section "7.11 The import statement" is is explained in the example section:

   import foo.bar.baz         # foo.bar.baz imported, foo bound locally

When looking at "5.3. Searching", it is stated that regarding foo.bar.baz:

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

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.bar.baz         # foo, foo.bar and foo.bar.baz imported, foo bound locally
History
Date User Action Args
2021-02-05 17:33:31Dirk Herrmannsetrecipients: + Dirk Herrmann, docs@python
2021-02-05 17:33:30Dirk Herrmannsetmessageid: <1612546411.0.0.965001930731.issue43138@roundup.psfhosted.org>
2021-02-05 17:33:30Dirk Herrmannlinkissue43138 messages
2021-02-05 17:33:30Dirk Herrmanncreate