pyzmq/examples/serialization
Luca Mussi c6a6a93149 Fixed byte size computation for numpy array
* `len(A)` returns the number of rows (which is 1024 in this case) while the total number of elements is to be retrieved with `A.size`
* the exact byte size of each element can be obtained with `A.itemsize` regardless of the actual `dtype` used for the array

with these changes the original size is correctly computed as 8388608 bytes which is exactly 8Mb
2015-03-06 12:05:30 +01:00
..
serialsocket.py Fixed byte size computation for numpy array 2015-03-06 12:05:30 +01:00