fast way of turning a list of integers<256 into a string

Mike C. Fletcher mcfletch at rogers.com
Tue Jan 14 04:16:59 EST 2003


That second non-entry should have been:

 >>> d = struct.pack( 'B'*len(myints), *myints )

Forgot to copy back the fixed version from the interpreter :) .

Sigh,
Mike

Mike C. Fletcher wrote:
...

> >>> struct.pack( ">"*len(myints), *myints )

...







More information about the Python-list mailing list