Le 13/06/2018 à 22:53, David Mertz a écrit :
> On Wed, Jun 13, 2018, 4:44 PM Michel Desmoulin
> <desmoulinmic...@gmail.com <mailto:desmoulinmic...@gmail.com>> wrote:
> 
>     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.
> 

Sweat. Now let's do that for replace :)

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to