Merge pull request #953 from apjanke/global-vs-caller-namespace

Use "local" instead of "global" to describe where imports go
This commit is contained in:
Marc Poulin
2018-12-28 08:46:29 -07:00
committed by GitHub
+2 -2
View File
@@ -441,8 +441,8 @@ bad practice. **Using** ``import *`` **makes code harder to read and makes
dependencies less compartmentalized**.
Using ``from modu import func`` is a way to pinpoint the function you want to
import and put it in the global namespace. While much less harmful than ``import
*`` because it shows explicitly what is imported in the global namespace, its
import and put it in the local namespace. While much less harmful than ``import
*`` because it shows explicitly what is imported in the local namespace, its
only advantage over a simpler ``import modu`` is that it will save a little
typing.