logo       

Re: segmentation fault: msg#00006

python.numeric.general

Subject: Re: segmentation fault

On 8/3/04 12:09 AM, "Shin" <sdhyok@xxxxxxxxxxxxx> wrote:

> The followind code generates "Process Python segmentation fault".
> Is it expected, or a bug?
>
I'd hazard that it is a bug since I'm not sure when a seg fault is really
desired, but maybe that's just me ;-)

> from numarray import *
> from numarray.ieeespecial import *
>
> x = arange(10, typecode='d')
> x[5] = nan
> del x[getnan(x)]
>
But note that this is an error of usage. You shouldn't be trying to delete a
part of an array. You can delete the array but here you appear to be trying
to delete a nan value. Arrays don't work like lists in this regard. What are
you trying to do?

Perry Greenfield



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com


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

News | FAQ | advertise