Python 2.4 - Help does not work in Windows

Scott David Daniels scott.daniels at acm.org
Wed Jan 4 13:02:57 EST 2006


stuart_white_ at hotmail.com wrote:
> I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the
> Any help would be greatly appreciated!
> 
A data point: It is not the interaction of the two Pythons.

C:\...\Py>\python23\python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import time; help(time)
Help on built-in module time:
...
C:\...\Py>\python24\python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import time; help(time)
Help on built-in module time:
...

This information might help:

C:\...\Py>\python24\python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys, time; names = set(sys.modules)
 >>> help(time)
...
 >>> ' '.join(sorted(set(sys.modules) - names))
'_random binascii collections dis errno imp inspect opcode
pydoc random tempfile thread token tokenize'

That is, those are the modules loaded in the course of doing the "help".
I'd try loading them one-by one.


Alternatively, start the interpreter as:
     python -v
And watch the imports as you do (1) "import time", and (2) "help(time)".
You may see the import causing the problem.

--Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list