[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
Natalie Amery added the comment: https://bugs.python.org/issue25433 has a summary of the issue about what actually constitutes whitespace from the perspective of improving the documentation. In terms of what strip does it turns out that string.whitespace is a red herring. A list of

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
Natalie Amery added the comment: Oops, sorry, that should say 'strip' througout not 'split'. My bad. -- ___ Python tracker <https://bug

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
New submission from Natalie Amery : If I want to remove the default set of 'whitespace' characters plus something else from a string there's currently no way to cleanly specify that. In addition there's no way to programatically acquire what characters are considered whi