From: Tim Peters Date: Sat, 27 Jan 2001 05:35:26 +0000 (+0000) Subject: Added news about repr(string). X-Git-Tag: v2.1a2~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40ead76ed67f345ae0c7b92072033166408535ad;p=thirdparty%2FPython%2Fcpython.git Added news about repr(string). --- diff --git a/Misc/NEWS b/Misc/NEWS index def0dd3fd1c0..3a68d8c59b45 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