[issue7328] pydoc doesn't work from the command line

2010-01-31 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +Merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___ ___ Python-bugs-list mailing

[issue7328] pydoc doesn't work from the command line

2009-11-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This works under 2.x but not 3.x: $ ./python -m pydoc str No module named subprocess -- components: Library (Lib) messages: 95297 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: pydoc doesn't work

[issue7328] pydoc doesn't work from the command line

2009-11-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Same with an installed Python by the way: $ usr/bin/python3 -m pydoc str No module named subprocess However, it works when not using -m but invoking the file directly: $ ./python Lib/pydoc.py str [displays the str doc page] --

[issue7328] pydoc doesn't work from the command line

2009-11-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: pydoc removes the scriptdir from sys.path. When run under -m, that means it removes the standard library directory! It works in 2.x because os.popen doesn't rely on subprocess there - instead it comes direct from the builtin posix module.

[issue7328] pydoc doesn't work from the command line

2009-11-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Fixed in r76312 and subsequent checkins (pydoc was corrupting sys.path when run under -m and getting away with it in 2.x, but breaking os.popen in 3.x) -- ___ Python tracker rep...@bugs.python.org

[issue7328] pydoc doesn't work from the command line

2009-11-15 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7328 ___