[Numpy-discussion] fromstring doesn't accept buffer object
Todd Miller
jmiller at stsci.edu
Thu Aug 26 05:53:28 EDT 2004
This is what I see this morning using CVS:
>>> from numarray import *
>>> s = "thisthis"
>>> fromstring(buffer(s), shape=(2,), type=Int32)
array([1936287860, 1936287860])
What kind of failure are you seeing?
Regards,
Todd
On Thu, 2004-08-26 at 09:28, Nadav Horesh wrote:
> Numerc accepts a buffer object instead of a string:
>
> arr = Numeric.fromstring(buffer(.some_string), ..)
> while numarray doesn't.
>
> Is it intentional?
>
> Nadav.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
--
More information about the NumPy-Discussion
mailing list