News for hackers. Stuff that matters.
Re:The PEPs of Python 3.9 by kbd on Thursday May 28, 2020 @03:32PM (#23341475)
I would have preferred 'stripprefix' for unity with 'strip', 'rstrip', and 'lstrip'
Re:The PEPs of Python 3.9 by pdonis on Thursday May 28, 2020 @03:53PM (#23341777)
That's discussed in the article: the "strip" methods don't interpret strings of multiple characters as a single prefix or suffix to be removed, so it was felt to be too confusing to use "strip" type names for methods that do interpret strings that way.
Re:The PEPs of Python 3.9 by mixmastamyk on Thursday May 28, 2020 @03:48PM (#23341708)
They work differently. Strip removes all given characters from the end in any order. Trim sounds better to me, like one operation.