[New-bugs-announce] [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:


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>

More information about the New-bugs-announce mailing list