[Python-Dev] bool conversion wart? (original) (raw)

Guido van Rossum guido at python.org
Sat Feb 24 14:56:42 CET 2007


Can anyone who is in favor of changing this please come up with a spec for the new bool() signature? What would you do for the most common use case of bool(), which is converting an arbitrary value to its Boolean equivalent without using an if test or the "not not x" hack?

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list