Skip to content

Commit 979b4cd

Browse files
authored
Merge pull request realpython#953 from apjanke/global-vs-caller-namespace
Use "local" instead of "global" to describe where imports go
2 parents 4e9a305 + d012a66 commit 979b4cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/writing/structure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ bad practice. **Using** ``import *`` **makes code harder to read and makes
441441
dependencies less compartmentalized**.
442442

443443
Using ``from modu import func`` is a way to pinpoint the function you want to
444-
import and put it in the global namespace. While much less harmful than ``import
445-
*`` because it shows explicitly what is imported in the global namespace, its
444+
import and put it in the local namespace. While much less harmful than ``import
445+
*`` because it shows explicitly what is imported in the local namespace, its
446446
only advantage over a simpler ``import modu`` is that it will save a little
447447
typing.
448448

0 commit comments

Comments
 (0)