Re: [Numpy-discussion] Review of issue 825

2008-06-26 Thread Travis E. Oliphant
Charles R Harris wrote: On Wed, Jun 25, 2008 at 2:04 PM, Neil Muller [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Wed, Jun 25, 2008 at 7:53 PM, Charles R Harris [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: But I wonder if this case isn't supposed to be caught by

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Travis E. Oliphant
Yes, but it is directed at the interpreter, which will raise a TypeError if needed. But the interpreter doesn't know that some generic function might return NotImplemented and wouldn't know what to do if it did. What the user should see when they call something like right_shift(a,b) and

Re: [Numpy-discussion] Review of issue 825

2008-06-26 Thread Neil Muller
On Thu, Jun 26, 2008 at 7:25 AM, Charles R Harris [EMAIL PROTECTED] wrote: Etch has a problem with memmap.roundtrip while Lenny does fine, but that looks to be some other problem. Indeed - I see this is already filed as #828. I'll look at this and add any comments to that ticket. -- Neil

[Numpy-discussion] Topical documentation

2008-06-26 Thread Stéfan van der Walt
Hi all, We are busy writing several documents that address general NumPy topics, such as indexing, broadcasting, testing, etc. I would like for those documents to be available inside of NumPy, so that they could be accessed as docstrings: help(np.doc.indexing) or In [15]: np.doc.indexing?

Re: [Numpy-discussion] Topical documentation

2008-06-26 Thread Anne Archibald
2008/6/26 Stéfan van der Walt [EMAIL PROTECTED]: Hi all, We are busy writing several documents that address general NumPy topics, such as indexing, broadcasting, testing, etc. I would like for those documents to be available inside of NumPy, so that they could be accessed as docstrings:

[Numpy-discussion] Record arrays

2008-06-26 Thread Stéfan van der Walt
Hi all, I am documenting `recarray`, and have a question: Is its use still recommended, or has it been superseded by fancy data-types? Regards Stéfan ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] Topical documentation

2008-06-26 Thread Joe Harrington
Just to clarify, the documentation Stefan refers to is topical *reference* documentation for the numpy package infrastructure, conventions, etc. The contemplated .doc module will be a few kB of distilled reference text. Its contents will be included in the PDF and HTML reference guides. It may

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Christopher Hanley
Stéfan van der Walt wrote: Hi all, I am documenting `recarray`, and have a question: Is its use still recommended, or has it been superseded by fancy data-types? Regards Stéfan ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Travis E. Oliphant
Stéfan van der Walt wrote: Hi all, I am documenting `recarray`, and have a question: Is its use still recommended, or has it been superseded by fancy data-types? I rarely recommend it's use (but some people do like attribute access to the fields).It is wrong, however, to say that

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Charles R Harris
Hi Travis, On Thu, Jun 26, 2008 at 1:50 AM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Yes, but it is directed at the interpreter, which will raise a TypeError if needed. But the interpreter doesn't know that some generic function might return NotImplemented and wouldn't know what to

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Christopher Hanley
Travis E. Oliphant wrote: Stéfan van der Walt wrote: Hi all, I am documenting `recarray`, and have a question: Is its use still recommended, or has it been superseded by fancy data-types? I rarely recommend it's use (but some people do like attribute access to the fields).It is

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread John Hunter
On Thu, Jun 26, 2008 at 11:38 AM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Stéfan van der Walt wrote: Hi all, I am documenting `recarray`, and have a question: Is its use still recommended, or has it been superseded by fancy data-types? I rarely recommend it's use (but some people do

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Travis E. Oliphant
So it has a numeric value? Yes, it's just a floating point number. It's not a very elegant thing, but it does allow some ability to specify an ordering. -Travis ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

[Numpy-discussion] Record arrays

2008-06-26 Thread Vince Fulco
Would someone kindly provide links to references for the fancy data types superseding the recarrays? Having come from an R-Project background, manipulating the latter takes time to become acclimated to when building data.frame like objects. TIA, -- Vince Fulco

[Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Charles R Harris
Hi Alan, Decorators weren't introduced until Python2.4. I'm not sure what version we require now, that information should probably be added to a DEPENDENCY file, or maybe the README. Anyway, if we still support Python2.3 we can't use decorators. Chuck

Re: [Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Jarrod Millman
On Thu, Jun 26, 2008 at 10:37 AM, Charles R Harris [EMAIL PROTECTED] wrote: Decorators weren't introduced until Python2.4. I'm not sure what version we require now, that information should probably be added to a DEPENDENCY file, or maybe the README. Anyway, if we still support Python2.3 we

Re: [Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Pierre GM
On Thursday 26 June 2008 13:37:19 Charles R Harris wrote: Hi Alan, Decorators weren't introduced until Python2.4. I'm not sure what version we require now, that information should probably be added to a DEPENDENCY file, or maybe the README. Anyway, if we still support Python2.3 we can't use

Re: [Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Alan McIntyre
On Thu, Jun 26, 2008 at 1:37 PM, Charles R Harris [EMAIL PROTECTED] wrote: Decorators weren't introduced until Python2.4. I'm not sure what version we require now, that information should probably be added to a DEPENDENCY file, or maybe the README. Anyway, if we still support Python2.3 we can't

Re: [Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Alan McIntyre
On Thu, Jun 26, 2008 at 1:51 PM, Jarrod Millman [EMAIL PROTECTED] wrote: Starting with NumPy 1.2 and SciPy 0.7 we will require Python 2.4 or greater. I will make sure to update the documentation later today, if no one gets to it before me. In that case I will leave the decorators in

Re: [Numpy-discussion] nosetester.py can't use decorators and work with python2.3

2008-06-26 Thread Charles R Harris
On Thu, Jun 26, 2008 at 11:51 AM, Jarrod Millman [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 10:37 AM, Charles R Harris [EMAIL PROTECTED] wrote: Decorators weren't introduced until Python2.4. I'm not sure what version we require now, that information should probably be added to a

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Gael Varoquaux
On Thu, Jun 26, 2008 at 11:48:06AM -0500, John Hunter wrote: I personally think they are the best thing since sliced bread, and everyone here who uses them becomes immediately addicted to them. I would like to see better support for them, especially making the attrs exposed to dir so tab

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Dan Yamins
On Thu, Jun 26, 2008 at 3:34 PM, Gael Varoquaux [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 11:48:06AM -0500, John Hunter wrote: I personally think they are the best thing since sliced bread, and everyone here who uses them becomes immediately addicted to them. I would like to see

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Robert Kern
On Thu, Jun 26, 2008 at 15:13, Dan Yamins [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 3:34 PM, Gael Varoquaux [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 11:48:06AM -0500, John Hunter wrote: I personally think they are the best thing since sliced bread, and everyone here who

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Gabriel Gellner
Let's be clear, there are two very closely related things: recarrays and record arrays. Record arrays are just ndarrays with a complicated dtype. E.g. In [1]: from numpy import * In [2]: ones(3, dtype=dtype([('foo', int), ('bar', float)])) Out[2]: array([(1, 1.0), (1, 1.0), (1, 1.0)],

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Dan Yamins
In [12]: r2.foo Out[12]: array([1, 1, 1]) One downside of this is that the attribute access feature slows down all field accesses, even the r['foo'] form, because it sticks a bunch of pure Python code in the middle. Much code won't notice this, but if you end up having to iterate over an

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Travis E. Oliphant
Does that clarify the discussion for you? Yes, thanks very much, this is very helpful. (I think I was confused by the fact that, AFAICT, the Guide to Numpy only mentions recarray -- as distinct from Record arrays -- in one somewhat cryptic line.) But I guess that the numpy

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Gael Varoquaux
I understand all your comments and thank you for making this distinction explicit. I can see why recarray can slow code down, but I find attribute lookup make code much more readable, and interactive work fantastic (tab completion). For many of my applications I do have a strong use case for these

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Robert Kern
On Thu, Jun 26, 2008 at 21:24, Gael Varoquaux [EMAIL PROTECTED] wrote: I understand all your comments and thank you for making this distinction explicit. I can see why recarray can slow code down, but I find attribute lookup make code much more readable, and interactive work fantastic (tab

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Gael Varoquaux
On Thu, Jun 26, 2008 at 09:36:38PM -0500, Robert Kern wrote: On Thu, Jun 26, 2008 at 21:24, Gael Varoquaux [EMAIL PROTECTED] wrote: I understand all your comments and thank you for making this distinction explicit. I can see why recarray can slow code down, but I find attribute lookup make

Re: [Numpy-discussion] Record arrays

2008-06-26 Thread Fernando Perez
On Thu, Jun 26, 2008 at 1:25 PM, Robert Kern [EMAIL PROTECTED] wrote: One downside of this is that the attribute access feature slows down all field accesses, even the r['foo'] form, because it sticks a bunch of pure Python code in the middle. Much code won't notice this, but if you end up

[Numpy-discussion] Student sponsorship for the SciPy08 conference

2008-06-26 Thread Gael Varoquaux
We are delighted to announce that the Python Software Foundation has answered our call and is providing sponsoring to the SciPy08 conference. We will use this money to sponsor the registration fees and travel for up to 10 college or graduate students to attend the conference. The PSF did not