[issue15575] Tutorial is unclear on multiple imports of a module.

R. David Murray report at bugs.python.org
Tue Aug 7 20:29:48 CEST 2012


R. David Murray added the comment:

Well, I don't think a full discussion of the subtlety about a module appearing under multiple names belongs in the tutorial, but I think the sentence could be amended to say "Statements in a module are executed only the *first* time the module name is encountered in an import statement".

The other is indeed a bug (IMO the sentence is missing the word 'definition', as in 'execution of a function definition').

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15575>
_______________________________________


More information about the Python-bugs-list mailing list