Message78193
> If you want to change to using bytes, you're going to have to take it
> to the Web-SIG and hash out a revision to PEP 333, which at the moment
> requires the use of strings, period.
What was called str in 2.x has become the bytes object in py3k.
What was called unicode in 2.x has become str in py3k.
(roughly)
Given the meaning of the term "string" and its possible acceptions have
dramatically changed between 2.x and py3k, how does this patch violate
the PEP more than any other?
Actually, the PEP says:
HTTP does not directly support Unicode, and neither does this
interface. All encoding/decoding must be handled by the
application; all strings passed to or from the server must be
standard Python *byte strings*, not Unicode objects.
[emphasis mine]
So, not accepting bytes in py3k is clearly a violation of the PEP! |
|
Date |
User |
Action |
Args |
2008-12-22 15:37:48 | pitrou | set | recipients:
+ pitrou, pje, hdima |
2008-12-22 15:37:47 | pitrou | link | issue4718 messages |
2008-12-22 15:37:46 | pitrou | create | |
|