[issue44521] str.removeprefix(): add strict: bool

Jelle Zijlstra report at bugs.python.org
Mon Jun 28 12:45:55 EDT 2021


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

ValueError would seem to be the right exception to use.

If this parameter were to be added (I'm not convinced that it should be), I'd prefer to call it something more specific than "strict", since "strict" can mean lots of things.

----------
nosy: +Jelle Zijlstra
versions:  -Python 3.10, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44521>
_______________________________________


More information about the Python-bugs-list mailing list