[issue2001] Pydoc interactive browsing enhancement

Ron Adam report at bugs.python.org
Fri Jul 30 19:36:39 CEST 2010


Ron Adam <ron_adam at users.sourceforge.net> added the comment:

New diff file.

Removed the '-g' option and added a '-b' option.

Using the '-g' option will now bring up pydoc options help.

Added a simple server command prompt with 'b' and 'q' choices
to open a browser and quit the server.

Allow the '-p' option to be use along with the  '-b' option.

Catch the error when the port is already in use and print a nice error instead of a traceback with an exception.

The port number now defaults to port 0 and uses a random unused port.

Changed the name of the server to better describe what it does to
http._text_server_thread.py.  Used a leading underscore on the name to
indicate it is a private module and give it time to mature a bit more
before making it public.

Rewrote the _text_server_thread.py example in its __doc__ string so
it passes a doctest.

----------
Added file: http://bugs.python.org/file18271/pydoc_server4.diff

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


More information about the Python-bugs-list mailing list