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 eryksun
Recipients christian.heimes, eryksun, wsqat
Date 2020-11-18.14:23:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605709395.37.0.667491938993.issue42397@roundup.psfhosted.org>
In-reply-to
Content
Python 3.9 added str.removeprefix() and str.removesuffix() [1]:

    >>> "data_prj_t_suffix".removeprefix('data_prj_').removesuffix('_suffix')
    't'

[1] https://docs.python.org/3/library/stdtypes.html#str.removeprefix
History
Date User Action Args
2020-11-18 14:23:15eryksunsetrecipients: + eryksun, christian.heimes, wsqat
2020-11-18 14:23:15eryksunsetmessageid: <1605709395.37.0.667491938993.issue42397@roundup.psfhosted.org>
2020-11-18 14:23:15eryksunlinkissue42397 messages
2020-11-18 14:23:15eryksuncreate