[Python-checkins] CVS: python/dist/src/Misc NEWS,1.106,1.107
Tim Peters
tim_one@users.sourceforge.net
Fri, 26 Jan 2001 21:35:28 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv3806/python/dist/src/misc
Modified Files:
NEWS
Log Message:
Added news about repr(string).
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -r1.106 -r1.107
*** NEWS 2001/01/25 06:23:18 1.106
--- NEWS 2001/01/27 05:35:26 1.107
***************
*** 1,5 ****
--- 1,13 ----
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