On Sun, Sep 20, 2009 at 08:55:51PM +0200, Antoine Pitrou wrote: > 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
Well, I was discussing with Armin Ronacher at IRC and I pointed him to this: http://bugs.python.org/issue3300 Yes, it did go through considerable amount of discussion. > 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. More so for commonly used ones.. -- Senthil Smoking is one of the leading causes of statistics. -- Fletcher Knebel _______________________________________________ stdlib-sig mailing list stdlib-sig@python.org http://mail.python.org/mailman/listinfo/stdlib-sig