[Python-ideas] Break the dominance of boolean values in boolean context
g.nius.ck at gmail.com
Tue Sep 13 00:32:15 CEST 2011
I do like the idea, but here is the problem
>>> s= StrangeObjectofDeath(True)
>>> if s: print "True"
>>> s and True
>>> True and s
>>> s or False
>>> False or s
>>> not s
See how this could mess up a third party module if it is given this mess. It
also makes stuff less readable.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas