[New-bugs-announce] [issue35041] urllib.parse.quote safe Parameter Not Optional

william.ayd report at bugs.python.org
Sun Oct 21 22:25:11 EDT 2018


New submission from william.ayd <william.ayd at icloud.com>:

The safe parameter in urllib.parse.quote is documented as optional. However, the following will raise TypeError: 'NoneType' object is not iterable:

urllib.parse.quote("/", safe=None)

whereas explicitly providing an iterable will allow the function to succeed:

urllib.parse.quote("/", safe=[])

----------
messages: 328229
nosy: william.ayd
priority: normal
severity: normal
status: open
title: urllib.parse.quote safe Parameter Not Optional
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35041>
_______________________________________


More information about the New-bugs-announce mailing list