diff -r 7f2e6f236202 Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Sun May 24 01:03:46 2015 +1000 +++ b/Doc/library/stdtypes.rst Sat May 23 08:59:19 2015 -0700 @@ -1937,6 +1937,16 @@ >>> 'www.example.com'.strip('cmowz.') 'example' + The outer-most leading and trailing *chars* argument values are stripped + from the string. Characters are removed from the left until + reaching a string character that is not contained in the set of + characters in *chars*. A similar action takes place on the right. + For example:: + + >>> comment_string = '#....... Section 3.2.1 Issue #32 .......' + >>> comment_string.strip('.#! ') + 'Section 3.2.1 Issue #32' + .. method:: str.swapcase()