This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients docs@python, dronus, eric.araujo, ezio.melotti, rhettinger, terry.reedy
Date 2011-09-22.23:40:13
SpamBayes Score 0.000184078
Marked as misclassified No
Message-id <>
> A separate issue would be a feature request to not do that (assuming it really does).

I tried to verify this (the fact that modules get imported with help('modules')).  Here are the results:
  * Lib/
    - help('modules'): foobar in the list, code is *not* executed;
    - help('foobar'): code is executed;
  * Lib/deleteme/
    - help('modules'): deleteme in the list, code is executed;
    - help('deleteme'): code is executed;
  * Lib/deleteme/ and Lib/deleteme/
    - help('modules'): deleteme in the list, only __init__ code is executed;
    - help('deleteme.foobar'): foobar code is executed;

So it seems the only code that gets executed with help('modules') is the one in packages' __init__s.  It also seems that the code is executed only once, so doing help('deleteme') after help('modules') doesn't execute the code again.
Date User Action Args
2011-09-22 23:40:15ezio.melottisetrecipients: + ezio.melotti, rhettinger, terry.reedy, eric.araujo, docs@python, dronus
2011-09-22 23:40:14ezio.melottisetmessageid: <>
2011-09-22 23:40:14ezio.melottilinkissue12902 messages
2011-09-22 23:40:14ezio.melotticreate