Dev Player added the comment:
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:
Terry J. Reedy tjre...@udel.edu added the comment:
#13902 is essentially a duplicate of this and I may close it.
I am thinking now that executing unknown amounts of unknown code from unknown
modules is a really bad idea. If a module just crashes the system, as happened
with the OP of the
Ezio Melotti ezio.melo...@gmail.com added the comment:
Since help(modules) just shows a list of modules without any description,
maybe it could avoid importing them until further information about individual
modules are requested.
Also while trying to do help(modules) twice on py3k, I noticed
Terry J. Reedy tjre...@udel.edu added the comment:
As I said in msg143786, the second time only c-coded modules are listed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12902
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Right, I missed that.
If we change the way the list is created this bug will be probably get fixed
too. If we don't, we should open another issue.
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
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/foobar.py:
- help('modules'):
Terry J. Reedy tjre...@udel.edu added the comment:
The immediate issue is improvement of the entries for help and help():
In builtin functions section:
Expand Invoke the built-in help system. to
Invoke the built-in help system, which uses *pydoc*.
where *pydoc* is linked to the pydoc section.
Ezio Melotti ezio.melo...@gmail.com added the comment:
Warning: gathering the results for the topic 'modules' can take
considerable time and have side effects as it imports *every* module
available to get at its doc string.
http://docs.python.org/documenting/style.html#affirmative-tone
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12902
___
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. This comes from the fact that pydoc imports the modules
in order to get their documentation. Your message makes me think that the
KWallet Python modules have a problem: they should not pop GUIs at import time!
Please
New submission from dronus paul.geis...@web.de:
When running help(modules), some code of the modules seems to be run. For
example, on my Gnome system KWallet configuration GUI pops up and stalls
further opereation. I think no one expect help(modules) run abitrary code
instead of just
11 matches
Mail list logo