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 asicscwcs, eric.smith, iritkatriel, orsenthil, serhiy.storchaka
Date 2021-07-02.09:34:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625218465.88.0.847582722953.issue44520@roundup.psfhosted.org>
In-reply-to
Content
The documentation states that this function accepts bytes:

https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_from_bytes

None is not of type bytes, so raising a TypeError is not unreasonable. It would certainly be wrong to return any string. It could have returned None but that doesn't make a massive usability difference and it's not worth changing now.

I propose to close this as 'not a bug'.
History
Date User Action Args
2021-07-02 09:34:25iritkatrielsetrecipients: + iritkatriel, orsenthil, eric.smith, serhiy.storchaka, asicscwcs
2021-07-02 09:34:25iritkatrielsetmessageid: <1625218465.88.0.847582722953.issue44520@roundup.psfhosted.org>
2021-07-02 09:34:25iritkatriellinkissue44520 messages
2021-07-02 09:34:25iritkatrielcreate