Author r.david.murray
Recipients r.david.murray, stein-k
Date 2018-01-07.15:59:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515340772.76.0.467229070634.issue32498@psf.upfronthosting.co.za>
In-reply-to
Content
We generally don't do type checking (see discussions of "duck typing"). We generally do just let the implementation detail bubble up.  I don't think the encoding suggestion works, since we can't know what encoding the byte string is in, or even if it is a valid one.

I wonder if unquote should be polymorphic: accept both bytes and strings and produce the same type of output as its input.  I think there are other urllib methods that are, but I haven't checked.
History
Date User Action Args
2018-01-07 15:59:32r.david.murraysetrecipients: + r.david.murray, stein-k
2018-01-07 15:59:32r.david.murraysetmessageid: <1515340772.76.0.467229070634.issue32498@psf.upfronthosting.co.za>
2018-01-07 15:59:32r.david.murraylinkissue32498 messages
2018-01-07 15:59:32r.david.murraycreate