Skip to content

Commit b553efb

Browse files
authored
Strengthen warning against using 'import *' in tutorial
1 parent b6d3242 commit b553efb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ an unknown set of names into the interpreter, possibly hiding some things
112112
you have already defined.
113113

114114
Note that in general the practice of importing ``*`` from a module or package is
115-
frowned upon, since it often causes poorly readable code. However, it is okay to
116-
use it to save typing in interactive sessions.
115+
frowned upon, since it often causes poorly readable code. However, it's acceptable
116+
only in interactive sessions for exploration; avoid in production code.
117117

118118
If the module name is followed by :keyword:`!as`, then the name
119119
following :keyword:`!as` is bound directly to the imported module.

0 commit comments

Comments
 (0)