From 6c38b1f281c90a7df8fad092d15fa678ca97b8ba Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 20 Sep 2017 13:39:24 +0530 Subject: docs: Document the new str.strip() feature --- docs/markdown/Reference-manual.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 34b473d..301c693 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1429,7 +1429,9 @@ are immutable, all operations return their results as a new string. - `startswith(string)` returns true if string starts with the string specified as the argument -- `strip()` removes whitespace at the beginning and end of the string +- `strip()` removes whitespace at the beginning and end of the string + *(added 0.43.0)* optionally can take one positional string argument, + and all characters in that string will be stripped - `to_int` returns the string converted to an integer (error if string is not a number) -- cgit v1.1