New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] Inconsistent / confusing documentation regarding importing submodules #87304
Comments
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 |
…ythonGH-92164) (cherry picked from commit ee2205b) Co-authored-by: Robert Yang <35813883+robert861212@users.noreply.github.com>
Thanks, seems like this can be closed now |
…ythonGH-92164) (cherry picked from commit ee2205b) Co-authored-by: Robert Yang <35813883+robert861212@users.noreply.github.com>
DirkHerrmann mannequin commentedFeb 5, 2021
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: