[New-bugs-announce] [issue12910] urrlib.quote quotes too many chars, e.g., '()'

Jörn Hees report at bugs.python.org
Tue Sep 6 12:26:38 CEST 2011


New submission from Jörn Hees <nrej9TyO at joernhees.de>:

urllib.quote('()')
returns '%28%29'

Looking into its code it tries to follow RFC 2396 (which is good even though it should follow rfc3986 nowadays), but it doesn't:

http://tools.ietf.org/html/rfc2396 (see Appendix A, p.27): "(" and ")" are in mark and therefore unreserved, so why are they quoted?

----------
components: Library (Lib)
messages: 143592
nosy: joern
priority: normal
severity: normal
status: open
title: urrlib.quote quotes too many chars, e.g., '()'
type: behavior
versions: Python 2.6, Python 2.7

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


More information about the New-bugs-announce mailing list