Roundup Robot added the comment:
New changeset 9df9931fae96 by R David Murray in branch '3.3':
#15575: Clarify tutorial description of when modules are executed.
http://hg.python.org/cpython/rev/9df9931fae96
New changeset dac847938326 by R David Murray in branch 'default':
#15575: Clarify
R. David Murray added the comment:
Thanks, James. I wound up going with a different wording for the
elaboration: since the concept of running a python file as a script is
mentioned just a bit earlier, I added a parenthetical that the statements are
also executed if the module is run as a
jamesob added the comment:
Howdy; attached is a patch containing the doc changes. I figured that some
elaboration was in addition to what r.david.murray recommended, so I've
included a brief allusion to the problem of equivalent paths.
--
keywords: +patch
nosy: +jamesob
Added file:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15575
___
New submission from Roy Smith:
Opening this bug at Ben Finney's request. See
https://groups.google.com/forum/?fromgroups#!topic/comp.lang.python/wmDUrpW2ZCU
for the full thread discussing the problem. Here's a significant excerpt:
-
The
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