|
RE: segmentation fault: msg#00007python.numeric.general
I am just playing with ieeespecial.py to see what happens if I tried some intuitive things. I know the command has an error. But, I think "segmentation fault" is too harsh as a response to the error. Am I right? Daehyok Shin > -----Original Message----- > From: Perry Greenfield [mailto:perry@xxxxxxxxx] > Sent: Tuesday, August 03, 2004 AM 10:22 > To: Shin; numpy > Subject: Re: [Numpy-discussion] 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> |
|---|---|---|
| Previous by Date: | Re: segmentation fault: 00007, Perry Greenfield |
|---|---|
| Next by Date: | Re: segmentation fault: 00007, Perry Greenfield |
| Previous by Thread: | Re: segmentation faulti: 00007, Perry Greenfield |
| Next by Thread: | Re: segmentation fault: 00007, Perry Greenfield |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |