Those are good points, so what about a new method for this rather than an 
additional behavior for the existing method? After all, "explicit is better 
than implicit".

New method names could be something like "beginswith_any" and "endswith_any", 
"find_any", "index_any", "count_any", ….
_______________________________________________
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/6Y3QPLCJSFPEFCRGCXUL4VE7HRBCDRAR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to