]> granicus.if.org Git - python/commitdiff
News for strip methods.
authorGuido van Rossum <guido@python.org>
Sat, 13 Apr 2002 00:59:05 +0000 (00:59 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 13 Apr 2002 00:59:05 +0000 (00:59 +0000)
Misc/NEWS

index 62a482860769830623c73bfde14e864d59793390..d3ed145ac2d0decaf16e769eb64d51c571b188d9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,10 @@ Type/class unification and new-style classes
 
 Core and builtins
 
+- String methods lstrip(), rstrip() and strip() now take an optional
+  argument that specifies the characters to strip.  For example,
+  "Foo!!!?!?!?".rstrip("?!") -> "Foo".
+
 - Added a new dict method pop(key).  This removes and returns the
   value corresponding to key.  [SF patch #539949]