]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
News for new strip method argument. Made the news message a bit
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 05:21:16 +0000 (05:21 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 05:21:16 +0000 (05:21 +0000)
more informative.

Misc/NEWS

index ee089d3197867ea75d1af97aa62cb7b25be8159d..135c9f245f46a4fe5a30599bc08e6809fc856d60 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -8,6 +8,12 @@ Core and builtins
   great many cyclic structures involving frames.  Reported on
   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