[Python-Dev] [isssue 2001] Pydoc enhancement patch questions (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sat Jul 24 12:37:23 CEST 2010


On Sat, Jul 24, 2010 at 10:05 AM, Ron Adam <rrr at ronadam.com> wrote:

I am not sure I like the fact that the browser is started automatically. Please bring this up on python-dev.  This may be an opportunity to rethink pydoc command line switches.  For example, -p and -g are currently exclusive, but it would make sense for -g to start server on the port specified by -p. So are any thoughts on starting the web browser automatically, and on how the -g and -p command line switches work?

My suggestion:

For the "-b" option, if the server is already running (and hence the port is in use), catch the exception, print a message and start the webbrowser anyway.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list