Sep-28-2020, 04:11 PM
(This post was last modified: Sep-28-2020, 04:12 PM by Gribouillis.)
I guess the argument for 'removeprefix' was consistency with 'expandtabs' or 'splitlines' or 'startswith'. It is a special case for the 'str' class due to method names that date back to python's early history. Note that pep 8 was only created in july 2001, ten years after Python's first release.