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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/6Y3QPLCJSFPEFCRGCXUL4VE7HRBCDRAR/ Code of Conduct: http://python.org/psf/codeofconduct/
