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 devplayer
Recipients devplayer, docs@python, dronus, eric.araujo, ezio.melotti, rhettinger, terry.reedy
Date 2014-07-11.03:46:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405050375.01.0.812469430679.issue12902@psf.upfronthosting.co.za>
In-reply-to
Content
Mentioned for informational purposes only.

I too experience the running of external packages with a different library when doing help('modules') in the interpreter. This is a fresh install of Python 3.4 on WinXP.

The text I get in the python.exe interpreter is:
"Expected Tk Togl installation in C:\Python\Python34\lib\site-packages\OpenGl\Tk\togl-win32"

Then I get an empty TK popup window.

Although this other issue was ages ago and was with a different machine, Python version and set of libraries I'm giving reference to this only because of mention of help(). http://bugs.python.org/issue10060

Although there is a command line option to prevent the import of site, while I may not want "help" to be imported, I usually want "site" to be imported. It would be nice to exclude the "help" import only via a command line.

I wonder if the interpreter could be given a command line option just to parse modules/scripts/packages/librarys to only compile the lines containing def and class without anything within the namespace except implicitly declared docstrings  (it not __doc__ = """...""")

In other words if you had source like:
def somefunc(arg=None):
   """here is the func __doc__"""
   x = value
   callme()

the interpreter could basically compile that into:

def somefunc(arg-None):
    """here is the func __doc__"""
    return None

or perhaps shortcircuit any non def/class/ """ """ to be tokenized as the pass statement would be.

Those would be feature/enhance kind thing I suppose.
History
Date User Action Args
2014-07-11 03:46:15devplayersetrecipients: + devplayer, rhettinger, terry.reedy, ezio.melotti, eric.araujo, docs@python, dronus
2014-07-11 03:46:15devplayersetmessageid: <1405050375.01.0.812469430679.issue12902@psf.upfronthosting.co.za>
2014-07-11 03:46:15devplayerlinkissue12902 messages
2014-07-11 03:46:13devplayercreate