logo       

Re: possible bug in concatenating character arrays: msg#00012

python.numeric.general

Subject: Re: possible bug in concatenating character arrays

On Sun, 5 Sep 2004 01:45:42 +0000 (UTC), Faheem Mitha
<faheem@xxxxxxxxxxxxx> wrote:

> The following recipe gives a segmentation fault.
>
> ************************************************************************
> In [1]: import numarray.strings as numstr
>
> In [2]: foo = numstr.array("acgttatcgt", shape=(3,3))
>
> In [3]: foo[0] + foo[1]
> Segmentation fault
> *************************************************************************

Another thing that works is:

In [4]: import copy

In [5]: copy.copy(foo[0]) + copy.copy(foo[1])
Out[5]: CharArray(['at', 'ct', 'ga'])

Faheem.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


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

News | FAQ | advertise