Godzilla <[EMAIL PROTECTED]> writes:
> > num = 255
> > numlist = [num >> i & 1 for i in range(8)]
> 
> Thanks matimus! I will look into it...

numlist = lookup_table[num]

where lookup_table is a precomputed list of lists.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to