R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32498>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to