[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 20 02:34:51 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 ]
Bob Ippolito wrote:
Would "and" and "or" still be able to properly short-circuit given this proposal?
Yes. I was very careful to ensure that all the existing semantics are preserved in the case of no overloads, and also that overloads can mimic all of the existing semantics if they need to.
-- Greg
- 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 ]