Skip to content

Commit d012a66

Browse files
committed
Use "local" instead of "global" to describe where imports go
1 parent cafe323 commit d012a66

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)