[Python-ideas] Break the dominance of boolean values in boolean context
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Sep 16 02:39:10 CEST 2011
Guido van Rossum wrote:
> On Tue, Sep 13, 2011 at 5:46 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
>>PEP 335 doesn't change that, it just shifts the emphasis
>>slightly. It provides hooks allowing you to do more
>>computation before deciding on the control flow.
>
> Yeah, and the extra computation (however slight) bothers me.
If the objects don't do anything special, the extra
computation reduces to noticing that a particular type
slot is NULL at the C level.
--
Greg
More information about the Python-ideas
mailing list