]> granicus.if.org Git - python/commitdiff
Added news about repr(string).
authorTim Peters <tim.peters@gmail.com>
Sat, 27 Jan 2001 05:35:26 +0000 (05:35 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 27 Jan 2001 05:35:26 +0000 (05:35 +0000)
Misc/NEWS

index def0dd3fd1c0b4cfaff787e746efe0bc35b2375b..3a68d8c59b450a98a20f42340c9bc4de4e88841a 100644 (file)
--- 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