[Python-Dev] Re: [Python-checkins] python/dist/src/Lib textwrap.py,1.18,1.19
Just van Rossum
just@letterror.com
Wed, 11 Dec 2002 15:17:59 +0100
Greg Ward wrote:
> Just, can you run the following commands and tell me what you get:
I get this in all four cases:
['0x9', '0xa', '0xb', '0xc', '0xd', '0x20']
But: I can't reproduce the problem with -c, only in an interactive shell or in a
script! Here's what I get in an interactive session:
sh-2.05a$ ./python.exe -S
Python 2.3a0 (#42, Dec 11 2002, 10:33:42)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string; print [hex(ord(c)) for c in string.whitespace]
['0x9', '0xa', '0xb', '0xc', '0xd', '0x20', '0xa0']
>>>
(Look, now there's an 0xa0 in there!)
sh-2.05a$ ./python.exe
Python 2.3a0 (#42, Dec 11 2002, 10:33:42)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string; print [hex(ord(c)) for c in string.whitespace]
['0x9', '0xa', '0xb', '0xc', '0xd', '0x20']
>>>
sh-2.05a$ LANG=C ./python.exe -S
Python 2.3a0 (#42, Dec 11 2002, 10:33:42)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string; print [hex(ord(c)) for c in string.whitespace]
['0x9', '0xa', '0xb', '0xc', '0xd', '0x20']
>>>
sh-2.05a$ LANG=C ./python.exe
Python 2.3a0 (#42, Dec 11 2002, 10:33:42)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string; print [hex(ord(c)) for c in string.whitespace]
['0x9', '0xa', '0xb', '0xc', '0xd', '0x20']
>>>
I have _no_ idea what's going on here.
Just