[Python-checkins] python/dist/src/Misc NEWS,1.387,1.388

doerwalter@sourceforge.net doerwalter@sourceforge.net
Mon, 15 Apr 2002 06:36:49 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv32693/Misc

Modified Files:
	NEWS 
Log Message:
Apply the second version of SF patch http://www.python.org/sf/536241

Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.

This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.387
retrieving revision 1.388
diff -C2 -d -r1.387 -r1.388
*** NEWS	15 Apr 2002 12:36:47 -0000	1.387
--- NEWS	15 Apr 2002 13:36:44 -0000	1.388
***************
*** 7,10 ****
--- 7,14 ----
  Core and builtins
  
+ - A method zfill() was added to str and unicode, that fills a numeric
+   string to the left with zeros.  For example,
+   "+123".zfill(6) -> "+00123".
+ 
  - Complex numbers supported divmod() and the // and % operators, but
    these make no sense.  Since this was documented, they're being