[Python-Dev] Boolean transition

Tim Peters tim.one@comcast.net
Sun, 10 Mar 2002 20:17:51 -0500


[Greg Ewing]
> We certainly don't need '&&' and '||' -- we already have them,
> they're called 'and' and 'or'.

They're not the same to David:  C && and || return 0 or 1, not sometimes
their LHS or RHS argument.

> But if booleans are to become a separate type eventually,
> I think that '&' and '|' should perform the standard
> (non-shortcircuiting) boolean algebra operations on them.
>
> In fact, that could be added now to the reference
> implementation in the PEP -- I don't think it would
> introduce any extra breakage.

That's already in the reference implementation, along with xor too.