Commit b803521
gh-137337: Clarify import statement namespace binding
The import statement docs said names are defined "in the local
namespace", which is inaccurate when the name has been declared
global or nonlocal. Update to say "current namespace... just as
an assignment statement would", per discussion with nedbat,
serhiy-storchaka, and terryjreedy.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cfeede8 commit b803521
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
764 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
| |||
806 | 807 | | |
807 | 808 | | |
808 | 809 | | |
809 | | - | |
| 810 | + | |
810 | 811 | | |
811 | 812 | | |
812 | 813 | | |
| |||
0 commit comments