[issue5699] Strange interaction between -m and pydoc

Georg Brandl report at bugs.python.org
Sun Apr 5 17:08:18 CEST 2009


New submission from Georg Brandl <georg at python.org>:

If you use "python -m pydoc", pydoc will not find standard modules
written in Python.  This leads to a traceback for example using "python
-m pydoc -k sys".  Somehow, sys.path gets modified in a strange way,
which can be seen from

$ python -i -m pydoc
(...)
>>> import sys
>>> sys.path
[... does not include /lib/python2.6 or /Lib ...]

----------
assignee: ncoghlan
messages: 85512
nosy: georg.brandl, ncoghlan
priority: normal
severity: normal
status: open
title: Strange interaction between -m and pydoc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5699>
_______________________________________


More information about the Python-bugs-list mailing list