>>> True == 1 True >>> False == 0 True >>> int(True) 1 >>> int(False) 0 >>> bool(1) True >>> bool(0) False
But: str(fill==True)+',' is simpler than: ("False,", "True,")[fill==True] -- http://mail.python.org/mailman/listinfo/python-list
>>> True == 1 True >>> False == 0 True >>> int(True) 1 >>> int(False) 0 >>> bool(1) True >>> bool(0) False
But: str(fill==True)+',' is simpler than: ("False,", "True,")[fill==True] -- http://mail.python.org/mailman/listinfo/python-list