[Python-ideas] Break the dominance of boolean values in boolean context

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Sep 12 22:29:43 CEST 2011


On Mon, Sep 12, 2011 at 4:20 PM, Lukas Lueg <lukas.lueg at googlemail.com> wrote:
..
> In code behaviour: Why is it, that we can override the behaviour of
> arithmetic operations like "+, -, *, /", but not the boolean
> operations like "and, or, xor, not" ?

You may want to take a look at PEP 335:

http://www.python.org/dev/peps/pep-0335/



More information about the Python-ideas mailing list