On Sun, Aug 5, 2018 at 2:37 AM, Steven D'Aprano <st...@pearwood.info> wrote: > All this supposes that there is sufficient benefit to allowing custom > infix operators, including overridable or/and/xor, which is not yet > shown.
Part of the justification for that is that the bitwise operators have different precedence to the logical operators. But custom operators would have to all be grouped at the same precedence level (or maybe a small handful of precedences, chosen by syntax), so that won't truly solve that problem. A valid justification would be: A single object needs to be able to perform both bitwise and logical operations, AND needs to customize the logical ops. I haven't seen any but they could exist. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/