Browse Source
This will allow roughly the same behavior as Python3 for non-ASCII strings, for example, print("<phrase in non-Latin script>".split()) will print list of words, not weird hex dump (like Python2 behaves). (Of course, that it will print list of words, if there're "words" in that phrase at all, separated by ASCII-compatible whitespace; that surely won't apply to every human language in existence).pull/689/merge
Paul Sokolovsky
11 years ago
4 changed files with 11 additions and 6 deletions
@ -1,3 +1,4 @@ |
|||
# anything above 0xa0 is printed as Unicode by CPython |
|||
for c in range(0xa1): |
|||
# the abobe is CPython implementation detail, stick to ASCII |
|||
for c in range(0x80): |
|||
print("0x%02x: %s" % (c, repr(chr(c)))) |
|||
|
Loading…
Reference in new issue