logo       

Re: fromstring doesn't accept buffer object: msg#00064

python.numeric.general

Subject: Re: fromstring doesn't accept buffer object

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@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
--



-------------------------------------------------------
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise