[Python-3000] [Python-Dev] Wither PEP 335 (Overloadable Boolean Operators)? (original) (raw)
Jason Orendorff jason.orendorff at gmail.com
Sat May 19 14:41:32 CEST 2007
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/18/07, Guido van Rossum <guido at python.org> wrote:
While reviewing PEPs, I stumbled over PEP 335 ( Overloadable Boolean Operators) by Greg Ewing.
-1. "and" and "or" affect the flow of control. It's a matter of taste, but I feel the benefit is too small here to add another flow-control quirk. I like that part of the language to be simple.
Anyway, if this is done, logically it should cover "(... if ... else ...)" as well. Same use cases.
-j
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]