increment bits

2005-05-12 Thread [EMAIL PROTECTED]
Hello, How do i manipulate arrays to increment 8 bits at a time. I need to generate a pattern like 01,02,03,.0xFF Thanks, -Ashton -- http://mail.python.org/mailman/listinfo/python-list

Re: increment bits

2005-05-12 Thread Bill Mill
On 12 May 2005 12:19:15 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, How do i manipulate arrays to increment 8 bits at a time. I need to generate a pattern like 01,02,03,.0xFF [hex(n) for n in range(256)] ['0x0', '0x1', '0x2', '0x3', '0x4', '0x5', '0x6', '0x7', '0x8',