[Python-ideas] bool keyword: (was [Python-Dev] bool conversion wart?)

Josiah Carlson jcarlson at uci.edu
Fri Mar 2 23:16:03 CET 2007


Ron Adam <rrr at ronadam.com> wrote:
> Interpretation:
> 
> The "small" inconsistency (if any) here is the 'not' keyword vs the 
> 'bool()' constructor. They pretty much do the same thing yet work in 
> modestly different ways.

Maybe I'm missing something, but is there a place where the following is
true?

    (not not x) != bool(x)

I can't think of any that I've ever come across.

 - Josiah




More information about the Python-ideas mailing list