On Sat, 9 Mar 2019 at 18:22, Jonathan Fine <jfine2...@gmail.com> wrote: > > I'm suggesting that the grammar allow us, if we wish, to write > c = a @cup b > for the union of two sets. And > len(A @cup B) == len(A) + len(B) - len(A @cap B)
You can use the infix module for that, which allows you to write - a @cup@ b - a &cup& b - a <<cup>> b - a ^cup^ b - a **cup** b - a /cup/ b - a %cup% b - a |cup| b Use that for a while, and if you like it, you can help the authors spread the word. - Pål
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/