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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4