On Fri, 07 Sep 2007 18:49:12 +0200, Jorgen Bodde wrote: > As for why caring if they are bools or not, I write True and False to > the properties, the internal mechanism works like this so I need to > make that distinction.
Really? Can't you just apply the `int()` function? In [52]: map(int, [1, 0, True, False]) Out[52]: [1, 0, 1, 0] Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list