Several attempts in this thread to write "simpler" code that does this job 
proved to be buggy. I feel there's some ground to say that having this in the 
library could prevent other less talented writers make those or even bigger 
mistakes.

I feel a tuple to specify multiple patterns fits nicely and it's easier to 
explain that an extended syntax.

I have created an issue and opened a PR with doc and tests, if this is deemed 
something worth to have.

Issue: https://bugs.python.org/issue41429
PR: https://github.com/python/cpython/pull/21666
_______________________________________________
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/WASKXQCN6IOAQR2632LTVBJXZHWMO7U5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to