[issue5699] Strange interaction between -m and pydoc

2009-04-05 Thread Nick Coghlan
Nick Coghlan added the comment: Duplicate of issue 2029 - it's apparently a bug in pydoc's sys.path manipulation, but I haven't got around to reviewing Guilherme's patch yet. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue5699] Strange interaction between -m and pydoc

2009-04-05 Thread Georg Brandl
Changes by Georg Brandl : -- components: +Library (Lib) versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___ __

[issue5699] Strange interaction between -m and pydoc

2009-04-05 Thread Georg Brandl
New submission from Georg Brandl : 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 (...) >>>