Re: [Numpy-discussion] [SciPy-User] Sanity checklist for those attending the SciPy'09 tutorials

2009-08-09 Thread Fernando Perez
On Sun, Aug 9, 2009 at 4:34 AM, wrote: > is "Availability: recent flavors of Unix. "  required (python 2.5 help > for os.uname) > Thanks for the catch, sorry about that. My unix-isms showing through... Updated. f ___ NumPy-Discussion mailing list Num

Re: [Numpy-discussion] SWIG, numpy.i and errno: comments?

2009-08-09 Thread Egor Zindy
Bill, thank you for your comment. Would this do instead? (replacing the return NULL with SWIG_fail): %exception { errno = 0; $action if (errno != 0) { switch(errno) { case EPERM: PyErr_Format(PyExc_IndexError, "Index out of range");

Re: [Numpy-discussion] Indexing with a list...

2009-08-09 Thread Alan G Isaac
Fancy indexing is discussed in detail in the Guide to NumPy. http://www.tramy.us/guidetoscipy.html Alan Isaac ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] SWIG, numpy.i and errno: comments?

2009-08-09 Thread Bill Spotz
Egor, This looks about right. However, it is customary to invoke the SWIG macro "SWIG_fail;" instead of "break;". (This translates into a "goto" to the failure label, and is better in case there is any other cleanup code to execute.) On Aug 9, 2009, at 6:17 AM, Egor Zindy wrote: > Hello

Re: [Numpy-discussion] Test failures r7300

2009-08-09 Thread lukshuntim
David Cournapeau wrote: > On Sat, Aug 8, 2009 at 10:33 PM, wrote: >> David Cournapeau wrote: >>> On Sat, Aug 8, 2009 at 9:38 PM, wrote: Hi, I got 16 test failures after building r7300 from svn on debian/sid/i386. Seems all related to complex linear algebra modules. >>> Are you

Re: [Numpy-discussion] [SciPy-User] Sanity checklist for those attending the SciPy'09 tutorials

2009-08-09 Thread josef . pktd
On Sun, Aug 9, 2009 at 5:12 AM, Fernando Perez wrote: > Hi all, > > [ sorry for spamming the list, but even though I sent this to all the > email addresses I have on file for tutorial attendees, I know I am > missing a few, so I hope they see this message. ] > > In order to make your experience at

[Numpy-discussion] SWIG, numpy.i and errno: comments?

2009-08-09 Thread Egor Zindy
Hello list, this is my attempt at generating python exceptions in SWIG/C using the errno mechanism: http://www.scipy.org/Cookbook/SWIG_NumPy_examples#head-10f49a0f5ea6b313127d2ec5ffa1eaf1c133cb22 Used together with numpy.i, this has been useful for notifying (in a pythonic way) memory allocation

[Numpy-discussion] Sanity checklist for those attending the SciPy'09 tutorials

2009-08-09 Thread Fernando Perez
Hi all, [ sorry for spamming the list, but even though I sent this to all the email addresses I have on file for tutorial attendees, I know I am missing a few, so I hope they see this message. ] In order to make your experience at the scipy tutorials as smooth as possible, we strongly recommend t

Re: [Numpy-discussion] Indexing with a list...

2009-08-09 Thread David Warde-Farley
On 9-Aug-09, at 2:38 AM, T J wrote: > Sure, but that wasn't my question. > > I was asking about the difference between indexing with a 1-tuple (or > scalar) and with a 1-list. Naively, I guess I didn't expect there to > be a difference. Though, I can see its uses (through the z[z<3] > example).