Author vstinner
Recipients Dennis Sweeney, eric.smith, gvanrossum, rhettinger, steven.daprano, vstinner, xtreak
Date 2020-03-16.13:04:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584363873.81.0.921271882373.issue39939@roundup.psfhosted.org>
In-reply-to
Content
The proposed change will affect many builtin types: bytes, bytearray, str, but also other types like collections.UserString. Would it make sense to summarize what has been said in the python-ideas thread into a PEP? It may good to specify things like:

    >>> x = "A"*10**6
    >>> x.cutprefix("B") is x
    True

The specification can be just "that's an implementation detail" or "CPython implementation specific" :-)

I don't expect such PEP to be long nor controversial, but it may help to write it down.
History
Date User Action Args
2020-03-16 13:04:34vstinnersetrecipients: + vstinner, gvanrossum, rhettinger, eric.smith, steven.daprano, xtreak, Dennis Sweeney
2020-03-16 13:04:33vstinnersetmessageid: <1584363873.81.0.921271882373.issue39939@roundup.psfhosted.org>
2020-03-16 13:04:33vstinnerlinkissue39939 messages
2020-03-16 13:04:33vstinnercreate