summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-13 00:59:05 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-13 00:59:05 (GMT)
commit49042041589dbebc1265bb878e6f00e5e1e9ef15 (patch)
treec7721f4b6e9552ea19479ea376508bfd1622b332
parent018b0eb0f50a6995922402d87cf9906b62a50252 (diff)
downloadcpython-49042041589dbebc1265bb878e6f00e5e1e9ef15.zip
cpython-49042041589dbebc1265bb878e6f00e5e1e9ef15.tar.gz
cpython-49042041589dbebc1265bb878e6f00e5e1e9ef15.tar.bz2
News for strip methods.
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 62a4828..d3ed145 100644
--- 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]