[issue46517] Review exception handling in urllib.parse
Irit Katriel
report at bugs.python.org
Tue Jan 25 07:33:04 EST 2022
New submission from Irit Katriel <iritkatriel at gmail.com>:
Is there a reason for this raising, catching and reraising the exception here:
https://github.com/python/cpython/blob/main/Lib/urllib/parse.py#L934
rather than just:
if len(query) and not isinstance(query[0], tuple):
raise TypeError("not a valid non-string sequence "
"or mapping object")
?
----------
components: Library (Lib)
messages: 411583
nosy: iritkatriel, orsenthil
priority: normal
severity: normal
status: open
title: Review exception handling in urllib.parse
type: enhancement
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46517>
_______________________________________
More information about the Python-bugs-list
mailing list