mk <mrk...@gmail.com> writes: >>>> isinstance(False, int) > True >>>> >>>> isinstance(True, int) > True > > Huh? > >>>> >>>> issubclass(bool, int) > True > > Huh?! > > Regards, > mk
Yes, and: >>> True + False 1 In fact: >>> 1 == True True >>> 0 == False True So what's your question? -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list