summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-27 05:35:26 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-27 05:35:26 (GMT)
commit40ead76ed67f345ae0c7b92072033166408535ad (patch)
tree349e636f42bbbcde011b8db701d44d5c3f0c4821 /Misc/NEWS
parent93b747efceaf6d68cb0fb99f3262aa77ce2ce27b (diff)
downloadcpython-40ead76ed67f345ae0c7b92072033166408535ad.zip
cpython-40ead76ed67f345ae0c7b92072033166408535ad.tar.gz
cpython-40ead76ed67f345ae0c7b92072033166408535ad.tar.bz2
Added news about repr(string).
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index def0dd3..3a68d8c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1,7 +1,15 @@
What's New in Python 2.1 alpha 2?
=================================
+
Core language, builtins, and interpreter
+- repr(string) is easier to read, now using hex escapes instead of octal,
+ and using \t, \n and \r instead of \011, \012 and \015 (respectively):
+
+ >>> "\texample \r\n" + chr(0) + chr(255)
+ '\texample \r\n\x00\xff' # in 2.1
+ '\011example \015\012\000\377' # in 2.0
+
Standard library