This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel, orsenthil
Date 2022-01-25.12:33:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643113984.02.0.925537875047.issue46517@roundup.psfhosted.org>
In-reply-to
Content
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")

?
History
Date User Action Args
2022-01-25 12:33:04iritkatrielsetrecipients: + iritkatriel, orsenthil
2022-01-25 12:33:04iritkatrielsetmessageid: <1643113984.02.0.925537875047.issue46517@roundup.psfhosted.org>
2022-01-25 12:33:04iritkatriellinkissue46517 messages
2022-01-25 12:33:03iritkatrielcreate