[Edu-sig] Looking for a comprehensive Python and Tkinterdocumentation (like the Java documentation)

Kirby Urner urnerk at qwest.net
Thu Mar 3 17:08:12 CET 2005



> -----Original Message-----
> From: edu-sig-bounces at python.org [mailto:edu-sig-bounces at python.org] On
> Behalf Of Florian Reichl
> Sent: Wednesday, March 02, 2005 9:16 AM
> To: David Handy; Edu-sig at python.org
> Subject: Re: [Edu-sig] Looking for a comprehensive Python and
> Tkinterdocumentation (like the Java documentation)
> 
> On Wed, 2 Mar 2005 11:35:05 -0500, David Handy <david at handysoftware.com>
> wrote:
> > Have you ever run pydoc?
> 
> No, I didn't.
> 
> > On windows: Programs->Python 2.4->Module Docs
> 
> On (Debian) Linux: /usr/lib/python2.3/pydoc.py -g

You can run pydoc as a server and hit it with your browser:

"""
Run "pydoc -p <port>" to start an HTTP server on a given port on the
local machine to generate documentation web pages.
"""

However, I'm having trouble getting this to work in Python 2.4 on WinXP, per
the traceback below:

D:\Python24\Lib>python pydoc.py -p 7887
Traceback (most recent call last):
  File "pydoc.py", line 55, in ?
    import sys, imp, os, re, types, inspect, __builtin__
  File "D:\Python24\Lib\re.py", line 5, in ?
    from sre import *
  File "D:\Python24\Lib\sre.py", line 97, in ?
    import sre_compile
  File "D:\Python24\Lib\sre_compile.py", line 17, in ?
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch


On the other hand, when I change to Python 2.3 and try the same thing, it
works:

D:\Python24\Lib>cd..

D:\Python24>cd ..

D:\>cd python23

D:\Python23>cd lib

D:\Python23\Lib>python pydoc.py -p 7887
pydoc server ready at http://localhost:7887/

Anyone able to get the 2.4 pydoc server working in Windows?

Kirby




More information about the Edu-sig mailing list