Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

Stéphane, I don't know much about urllib to review this. The reason I said it's 
better document this is that there was an extended discussion on issue25439 
along with a PR about type checking breaking some behavior and ambiguity in 
what is allowed currently. This PR seems to encode str to bytes implicitly and 
it needs to be documented as such that this str is encoded to bytes under the 
hood. I am not sure of backporting it as a fix to stable releases. I think it's 
better to raise an error instead of doing something implicitly.  I am adding 
Martin and Senthil to the issue who might have a better context.

----------
nosy: +martin.panter, orsenthil

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

Reply via email to