[stdlib-sig] urllib.parrrrse does not supporrrrt bytes

Antoine Pitrou solipsis at pitrou.net
Sun Sep 20 20:55:51 CEST 2009


Le dimanche 20 septembre 2009 à 20:48 +0200, Armin Ronacher a écrit :
> 
> What is quote_from_bytes used for when quote just calls into it?  Why
> did this ever become a public interface?  Also once unquote and
> unquote_plus are fixed, unquote_to_bytes is similarly useless,
> especially because both of them perform some weird utf-8 conversion if
> non-bytes are passed to them.

You should try a search in the python-dev archives. It was introduced
recently, and after quite a bit of discussion I think.

> I would just fix those and deprecate the explicit unquote_to_bytes and
> quote_from_bytes for future versions of Python 3.
> 
> Any comments on that?

Regardless of whether the semantics would be better or not, we can't
change APIs every 2 years, it will make our users furous.

Regards

Antoine.




More information about the stdlib-sig mailing list