diff -r 08829230079b Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Sat May 16 10:10:21 2015 -0400 +++ b/Doc/library/stdtypes.rst Sat May 16 13:12:25 2015 -0500 @@ -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 leading end until + reaching a string character that is not contained in the set of + characters in *chars*. A similar action takes place on the trailing end. + For example:: + + >>> comment_string = '#....... Section 3.2.1 Issue #32 .......' + >>> comment_string.strip('.#! ') + 'Section 3.2.1 Issue #32' + .. method:: str.swapcase()