[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

array and struct 64-bit Linux change in behavior Python 3.7 and 2.7

On 12/2/19 5:50 PM, Richard Damon wrote:

> Perhaps array could be extended so that it took '4' for a 4 byte integer
> and '8' for an 8 byte integer (maybe 'U4' and 'U8' for unsigned). Might
> as well also allow 1 and 2 for completeness for char and short (but
> those are currently consistent).

I will note that numpy arrays give exactly this level of control, as do ctypes 
arrays.  The standard array library might just be the wrong tool for the job of 
reading binary data.