From 12968fb6b24fa3e28e4b4f9cb7928579a9477318 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Tue, 8 Apr 2014 02:42:50 +0100 Subject: Display \r and \t escape codes in string repr --- tests/basics/string-repr.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/basics/string-repr.py (limited to 'tests/basics/string-repr.py') diff --git a/tests/basics/string-repr.py b/tests/basics/string-repr.py new file mode 100644 index 000000000..ba8dbe6d1 --- /dev/null +++ b/tests/basics/string-repr.py @@ -0,0 +1,3 @@ +# anything above 0xa0 is printed as Unicode by CPython3.3 +for c in range(0xa1): + print("0x%02x: %s" % (c, repr(chr(c)))) -- cgit v1.2.3