[Python-checkins] python/dist/src/Misc NEWS,1.337.2.4.2.22,1.337.2.4.2.23

anthonybaxter@sourceforge.net anthonybaxter@sourceforge.net
Wed, 17 Apr 2002 22:21:21 -0700


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

Modified Files:
      Tag: release22-maint
	NEWS 
Log Message:
News for new strip method argument. Made the news message a bit
more informative.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.337.2.4.2.22
retrieving revision 1.337.2.4.2.23
diff -C2 -d -r1.337.2.4.2.22 -r1.337.2.4.2.23
*** NEWS	17 Apr 2002 04:36:35 -0000	1.337.2.4.2.22
--- NEWS	18 Apr 2002 05:21:16 -0000	1.337.2.4.2.23
***************
*** 9,12 ****
--- 9,18 ----
    SourceForge as bug 543148.
  
+ - String methods lstrip(), rstrip() and strip() now take an optional
+   argument that specifies the characters to strip.  For example,
+   "Foo!!!?!?!?".rstrip("?!") -> "Foo". In addition, "200L".strip("L") 
+   will return "200". This is useful for replacing code that assumed
+   longs will always be printed with a trailing "L".
+ 
  Library