This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author senji
Recipients senji
Date 2020-01-22.12:16:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579695416.2.0.0994259543651.issue39418@roundup.psfhosted.org>
In-reply-to
Content
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 whitespace so you can't call split with an argument constructed of existing whitespace characters with the new things you need.

As an example you could have an additionally= parameter such that:

"   ( 123 )   ".strip() gives "( 123 )" and
"   ( 123 )   ".strip(additionally="()") gives "123"

I've not given that any thought so it's probably not the best way of solving the problem.
History
Date User Action Args
2020-01-22 12:16:56senjisetrecipients: + senji
2020-01-22 12:16:56senjisetmessageid: <1579695416.2.0.0994259543651.issue39418@roundup.psfhosted.org>
2020-01-22 12:16:56senjilinkissue39418 messages
2020-01-22 12:16:55senjicreate