Numeric arrays - initialising with binary data

Jesper Olsen jolsen at
Mon Feb 25 13:46:35 CET 2002


The build in array type has the methods


which make it easy to initialise arrays with binary data
read from a file.

The Numeric array, however, apperantly only has the tostring method.

How can I initialise a Numeric array (eg Float32), with binary data?

I can off course do this by using the Numeric C-API, but I am sure
there must be an easier way.

I am surprised the Numeric array type does not have the same methods
as the build in type, if the intention is in time to replace this


More information about the Python-list mailing list