[New-bugs-announce] [issue18905] pydoc -p 0 says the server is available at localhost:0

Wieland Hoffmann report at bugs.python.org
Mon Sep 2 18:49:20 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18905>
_______________________________________


More information about the New-bugs-announce mailing list