
Yes. On Fri, Mar 6, 2020 at 2:19 PM Steven D'Aprano <steve@pearwood.info> wrote:
Can we just fix this? The lack of an obvious way to delete a prefix or suffix is a continual pain point for users of the language. We've just had yet another bug report from some poor user who misunderstood the lstrip method:
https://bugs.python.org/issue39880
More examples:
https://bugs.python.org/issue37114 https://bugs.python.org/issue36410 https://bugs.python.org/issue32772 https://bugs.python.org/issue25979
https://stackoverflow.com/questions/4148974/is-this-a-bug-in-python-2-7
https://stackoverflow.com/questions/34544247/understanding-pythons-lstrip-me...
Obviously there will be a month of bike-shedding arguments about the names *wink* but can we at least agree that this is a genuine source of confusion and a useful addition to the string API?
-- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GRGAFI... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>