From: Anthony Baxter Date: Thu, 18 Apr 2002 05:21:16 +0000 (+0000) Subject: News for new strip method argument. Made the news message a bit X-Git-Tag: v2.2.2b1~425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c11ee1efffb2e5674ff30a8f9e65808b2fd0fe2d;p=thirdparty%2FPython%2Fcpython.git News for new strip method argument. Made the news message a bit more informative. --- diff --git a/Misc/NEWS b/Misc/NEWS index ee089d319786..135c9f245f46 100644 --- 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