report at bugs
Aug 7, 2012, 11:29 AM
Post #2 of 2
R. David Murray added the comment:
[issue15575] Tutorial is unclear on multiple imports of a module.
[In reply to]
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').
Python tracker <report [at] bugs>
Python-bugs-list mailing list