Re: [Tutor] how to split a stream of chars

2007-04-09 Thread Bob Gailer
<[EMAIL PROTECTED]> wrote >> i have a long stream of data, represented in hexadecimal >> form. I need to split it in bytes (by 2 chars each). eg >> '00010203040506'... -> ['00', '01, '02' ...]. >> >> So my question is: is there an inverse function of zip, or >> an easy way to split this long s

Re: [Tutor] how to split a stream of chars

2007-04-09 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote > i have a long stream of data, represented in hexadecimal > form. I need to split it in bytes (by 2 chars each). eg > '00010203040506'... -> ['00', '01, '02' ...]. > So my question is: is there an inverse function of zip, or > an easy way to split this long string in p

[Tutor] how to split a stream of chars

2007-04-09 Thread emilia12
hi list, i have a long stream of data, represented in hexadecimal form. I need to split it in bytes (by 2 chars each). eg '00010203040506'... -> ['00', '01, '02' ...]. So my question is: is there an inverse function of zip, or an easy way to split this long string in pairs (without indexing in cyc