Author orsenthil
Recipients antlong, jerub, orsenthil, python-dev, rosslagerwall, wichert
Date 2012-07-08.08:12:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAPOVWORycRLhqRUgFdWyLJHRsibHHT-6PO_n_D2bzBz1trXDfw@mail.gmail.com>
In-reply-to <1341732293.1.0.299829652408.issue14826@psf.upfronthosting.co.za>
Content
It seems to me that toBytes in urllib was introduce to restrict the
allowance of urls which were sent as unicode strings. We wanted urls
to be ascii strings in Python2.

http://mail.python.org/pipermail/python-bugs-list/2000-November/002779.html

And quoting to toBytes / to_bytes is actually the problem here, as
cookielib test cases is sending a unicode character which ascii
encoding fails to operate on. I am thinking that we should arrive at a
solution which brings consistency and fixes any previous mistakes.  In
3.3, I think, rework of to_bytes may also be a good solution, in 2.7
and 3.2, I think stephen's attached patch is in good lines.
Practically, the quote is more important than the failure at toBytes
by sending an unicode url.
History
Date User Action Args
2012-07-08 08:13:00orsenthilsetrecipients: + orsenthil, jerub, wichert, antlong, rosslagerwall, python-dev
2012-07-08 08:12:59orsenthillinkissue14826 messages
2012-07-08 08:12:59orsenthilcreate