[New-bugs-announce] [issue20662] Pydoc doesn't escape parameter defaults in html

Serhiy Storchaka report at bugs.python.org
Mon Feb 17 18:08:17 CET 2014


New submission from Serhiy Storchaka:

Pydoc doesn't escape parameter defaults in generated html files. For example for the socket.__init__() method in the socket module following html code is generated:

<dl><dt><a name="socket-__init__"><strong>__init__</strong></a>(self, family=<AddressFamily.AF_INET: 2>, type=<SocketType.SOCK_STREAM: 1>, proto=0, fileno=None)</dt></dl>

As result <AddressFamily.AF_INET: 2> and <SocketType.SOCK_STREAM: 1> aren't visible in browser (they are illegal html tags).

----------
components: Library (Lib)
messages: 211426
nosy: georg.brandl, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Pydoc doesn't escape parameter defaults in html
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20662>
_______________________________________


More information about the New-bugs-announce mailing list