[Python-ideas] Give regex operations more sugar

David Mertz mertz at gnosis.cx
Wed Jun 13 16:53:07 EDT 2018

On Wed, Jun 13, 2018, 4:44 PM Michel Desmoulin <desmoulinmichel at gmail.com>

> several startswith() and endswith() require a loop, but we could make
> them accept *args.

You mean something like:

"Lorem ipsum".startswith(('Lo', 'Hi', 'Foo'))

You might want to check the time machine.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180613/619af5c9/attachment.html>

More information about the Python-ideas mailing list