[Numpy-discussion] Test failure with latest SVN

2008-01-16 Thread Robin
I am on OS X 10.5.1 and get a test failure with the latest numpy svn. (Previously ran with no errors with svn as of a few weeks ago). test_zero_probability (numpy.tests.test_random.TestMultinomial) ... ok == ERROR: Ticket #396

Re: [Numpy-discussion] RFC: out of range slice indexes

2008-01-16 Thread Neal Becker
Neal Becker wrote: I've never liked that python silently ignores slices with out of range indexes. I believe this is a source of bugs (it has been for me). It goes completely counter to the python philosophy. I vote to ban them from numpy. from numpy import array x = array (xrange (10))

Re: [Numpy-discussion] casting

2008-01-16 Thread Hans Meine
Am Montag, 14. Januar 2008 19:59:15 schrieb Neal Becker: I don't want to use FROM_O here, because I really can only handle certain types. If I used FROM_O, then after calling FROM_O, if the type was not one I could handle, I'd have to call FromAny and convert it. What is the problem with that?

[Numpy-discussion] gcc not g++ for build numpy on mac 10.4 ?

2008-01-16 Thread denis bzowy
Folks, numpy/scipy builds on my mac 10.4.9 exec g++ not gcc but g++ assumes c++ even for .c files = lts of errors. I changed the link /usr/bin/g++ -- gcc, must be a better way ? Seems to me that g++ on numpy C is a bug: numpy builds on macs should run either gcc or g++ -x c --

[Numpy-discussion] numpy quit working

2008-01-16 Thread Kevin Christman
I've started to use numpy (1.0.4) and matplotlib but it suddenly quit working. Now when I import a simple test script: import numpy numpy.linspace(0,1) it gives the following error: Traceback (most recent call last): File D:/anothertest.py, line 1, in module import numpy File

Re: [Numpy-discussion] numpy quit working

2008-01-16 Thread Robert Kern
Kevin Christman wrote: I've started to use numpy (1.0.4) and matplotlib but it suddenly quit working. Now when I import a simple test script: import numpy numpy.linspace(0,1) it gives the following error: Traceback (most recent call last): File D:/anothertest.py, line 1, in module

Re: [Numpy-discussion] casting

2008-01-16 Thread Neal Becker
Hans Meine wrote: Am Montag, 14. Januar 2008 19:59:15 schrieb Neal Becker: I don't want to use FROM_O here, because I really can only handle certain types. If I used FROM_O, then after calling FROM_O, if the type was not one I could handle, I'd have to call FromAny and convert it. What is

Re: [Numpy-discussion] numpy quit workinge

2008-01-16 Thread Kevin Christman
That's it. I had named one of my files new.py. Thanks so much; now I have one less evidence that I'm going crazy. Kevin Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

Re: [Numpy-discussion] casting

2008-01-16 Thread Charles R Harris
On Jan 16, 2008 11:30 AM, Neal Becker [EMAIL PROTECTED] wrote: Hans Meine wrote: Am Montag, 14. Januar 2008 19:59:15 schrieb Neal Becker: I don't want to use FROM_O here, because I really can only handle certain types. If I used FROM_O, then after calling FROM_O, if the type was not