From c11ee1efffb2e5674ff30a8f9e65808b2fd0fe2d Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Thu, 18 Apr 2002 05:21:16 +0000 Subject: [PATCH] News for new strip method argument. Made the news message a bit more informative. --- Misc/NEWS | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.3