Two newbie questions
Steven D. Majewski
sdm7g at virginia.edu
Thu Nov 9 01:57:10 CET 2000
On 8 Nov 2000, Fred Clare wrote:
> 2.) What is an efficient way of packing a large (i.e. > 1MB)
> list of integers (that are in the range 0 to 255)
> into a Python string as a sequence of contiguous bytes?
> Something like the following seems very inefficient:
> import struct
Use the array module.
---| Steven D. Majewski (804-982-0831) <sdm7g at Virginia.EDU> |---
---| Department of Molecular Physiology and Biological Physics |---
---| University of Virginia Health Sciences Center |---
---| P.O. Box 10011 Charlottesville, VA 22906-0011 |---
"All operating systems want to be unix,
All programming languages want to be lisp."
More information about the Python-list