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 steven.daprano
Recipients davidghiurco, pmpp, steven.daprano
Date 2018-04-26.04:09:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524715756.9.0.682650639539.issue33362@psf.upfronthosting.co.za>
In-reply-to
Content
the argument to string.strip (also lstrip and rstrip) is not an exact substring to remove, but a set of characters to remove:

py> 'zyxzz1234'.strip('xyz')
'1234'
History
Date User Action Args
2018-04-26 04:09:16steven.dapranosetrecipients: + steven.daprano, pmpp, davidghiurco
2018-04-26 04:09:16steven.dapranosetmessageid: <1524715756.9.0.682650639539.issue33362@psf.upfronthosting.co.za>
2018-04-26 04:09:16steven.dapranolinkissue33362 messages
2018-04-26 04:09:16steven.dapranocreate