Skip to content

Commit

Permalink
Update import-statements.md (#9573)
Browse files Browse the repository at this point in the history
  • Loading branch information
artificial-paul authored Dec 11, 2024
1 parent bbe315f commit f1170c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/import-statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Loader Side Effects

An import statement instructs the Python import loader to perform several operations. For example, the statement `from a.b import Foo as Bar` causes the following steps to be performed at runtime:
1. Load and execute module `a` if it hasn’t previously been loaded. Cache a reference to a.
1. Load and execute module `a` if it hasn’t previously been loaded. Cache a reference to `a`.
2. Load and execute submodule `b` if it hasn’t previously been loaded.
3. Store a reference to submodule `b` to the variable `b` within module `a`’s namespace.
4. Look up attribute `Foo` within module `b`.
Expand Down

0 comments on commit f1170c0

Please sign in to comment.