[Python-ideas] Break the dominance of boolean values in boolean context
ncoghlan at gmail.com
Fri Sep 16 05:14:24 CEST 2011
On Fri, Sep 16, 2011 at 11:53 AM, Guido van Rossum <guido at python.org> wrote:
> But didn't Greg have a working patch? (For Python 2.3, but still...)
It isn't that I think the code changes are going to be huge, just that
even in the basic case they're not as trivial as "reduces to noticing
that a particular type slot is NULL at the C level" makes them sound.
The shift from 'control flow operation' to 'binary operator' is fairly
substantial, even if the changes are isolated to a couple of new
opcodes and the code generation for a couple of AST nodes.
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas