Author ron_adam
Recipients BreamoreBoy, belopolsky, eric.araujo, georg.brandl, giampaolo.rodola, ncoghlan, ping, ron_adam, srid
Date 2010-07-30.17:36:29
SpamBayes Score 0.000803599
Marked as misclassified No
Message-id <1280511399.02.0.185350764712.issue2001@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-30 17:36:39ron_adamsetrecipients: + ron_adam, ping, georg.brandl, ncoghlan, belopolsky, giampaolo.rodola, eric.araujo, srid, BreamoreBoy
2010-07-30 17:36:39ron_adamsetmessageid: <1280511399.02.0.185350764712.issue2001@psf.upfronthosting.co.za>
2010-07-30 17:36:37ron_adamlinkissue2001 messages
2010-07-30 17:36:37ron_adamcreate