Ron Adam <ron_a...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue2001> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com