[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)? (original) (raw)

Bob Ippolito bob at redivi.com
Sun May 20 00:01:45 CEST 2007


On 5/19/07, Raymond Hettinger <python at rcn.com> wrote:

> Giovanni Bajo wrote: >> Another workaround could be:

Before focusing mental talents on workarounds and implementations, it would be worthwhile to consider whether the idea would help or hurt the language. The and/or keywords already have some complexity due to their returning non-boolean values. IMO, it would be a disservice to the language to further complexify their meanings. Right now, at least, we can make a static reading of the code and have a good idea of what the and/or keywords mean.

Would "and" and "or" still be able to properly short-circuit given this proposal?

-bob



More information about the Python-3000 mailing list