New submission from Wieland Hoffmann:

In Python 3 one can use `pydoc -p 0` to start a pydoc HTTP server on an 
arbitrary unused port. This works (somewhat) in Python 2 as well, except that 
pydoc doesn't tell you which port it's listening on. Applying the attached 
patch makes pydoc print the correct port.

----------
components: Library (Lib)
files: pydoc-port.patch
keywords: patch
messages: 196789
nosy: Wieland.Hoffmann
priority: normal
severity: normal
status: open
title: pydoc -p 0 says the server is available at localhost:0
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file31556/pydoc-port.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to