Numeric arrays - initialising with binary data

Jesper Olsen jolsen at mailme.dk
Tue Feb 26 19:10:53 CET 2002


"Emile van Sebille" <emile at fenx.com> wrote in message news:<a5dc4f$6dr9c$1 at ID-11957.news.dfncis.de>...
> "Jesper Olsen" <jolsen at mailme.dk> wrote in message
> news:cf0ad9fb.0202250446.3df07a08 at posting.google.com...
> > Hi,
> >
> > The build in array type has the methods
> >
> > array.tostring()
> > array.fromstring()
> >
> > which make it easy to initialise arrays with binary data
> > read from a file.
> >
> > The Numeric array, however, apperantly only has the tostring method.
> >
> 
> Numeric 20.1.0 has fromstring.

You are right, thanks.

Numeric 21 is out now by the way.

I missed fromstring(), because it is not a method on the array object,
as in the build in type.

Which documentation are you using?

The most recent I can find is this

http://www.pfdubois.com/numpy/html2/numpy-9.html#pgfId-36538

I hate to complain so much :-), but why do they not distribute it with
the module itself. Also, I think it should be updated.

Cheers
Jesper



More information about the Python-list mailing list