Consider that the start or end of a string may contain repetitions of an affix.

Should `-+-+-+Spam'.stripprefix('-+')  remove just the first occurence?  All of them?  Does it need a 'count' parameter?

[all modulo bikeshedding on the names of course]

Rob Cliffe

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/JMWBL7HILHKZ7JVN2JEH3K5NHQUVFVNZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to