On 8/20/10 1:50 PM, John Nagle wrote:
On 8/20/2010 8:41 AM, Aahz wrote:
In article<4c5eef7f$0$1609$742ec...@news.sonic.net>,
John Nagle<na...@animats.com> wrote:
This looks like code that will do the wrong thing in
Python 2.6 for characters in the range 128-255. Those are
illegal in type "str", but this code is constructing such
values with "chr".
WDYM "illegal"?
Type "str" in Python 2.6 is ASCII, 0..127.
In Python 2.6, type "str" is comprised of bytes 0..255, not ASCII characters.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list