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 terry.reedy
Recipients docs@python, rapp.jens, terry.reedy
Date 2021-11-06.02:13:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636164813.22.0.816392983052.issue45722@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/reference/import.html#submodules

The point of the section is that even though the names 'for' and 'bar' are not directly importing into 'spam', they get attached to 'spam' any way as indirect effect of 'from'.  'Foo' and 'Bar are directly imported and so are also bound.  How about 

"Executing the following puts a name binding to foo and bar (as well as Foo and Bar) in the spam module:

>>> spam.Foo
<class spam.foo.Foo>
(This should be checked in case the .foo changes the report.)

I think one example showing both foo and Foo would be enough.
History
Date User Action Args
2021-11-06 02:13:33terry.reedysetrecipients: + terry.reedy, docs@python, rapp.jens
2021-11-06 02:13:33terry.reedysetmessageid: <1636164813.22.0.816392983052.issue45722@roundup.psfhosted.org>
2021-11-06 02:13:33terry.reedylinkissue45722 messages
2021-11-06 02:13:33terry.reedycreate