Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-27 Thread Charles R Harris
On Tue, May 27, 2008 at 2:52 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 2:53 PM, Travis E. Oliphant > <[EMAIL PROTECTED]> wrote: > > Charles R Harris wrote: > > >> 2) Complex divmod(), // and % are deprecated, should we make them > >> raise errors? > > Sometimes you have

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-27 Thread Robert Kern
On Tue, May 27, 2008 at 2:53 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: >> 2) Complex divmod(), // and % are deprecated, should we make them >> raise errors? > Sometimes you have float data that is complex because of an intermediate > calculation. I don't think w

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-27 Thread Charles R Harris
On Tue, May 27, 2008 at 1:53 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > Hi All, > > > > Here is the current behavior of the ufuncs and some comments. They > > don't yet cover mixed types for binary functions, > > but when they do we will see things like: > > >

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-27 Thread Travis E. Oliphant
Charles R Harris wrote: > Hi All, > > Here is the current behavior of the ufuncs and some comments. They > don't yet cover mixed types for binary functions, > but when they do we will see things like: > > In [7]: power(True,10) > Out[7]: > array([ 0.5822807 , 0.66568381, 0.11748811, 0.97047323,

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
On Sun, May 25, 2008 at 2:29 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Sun, May 25, 2008 at 1:12 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Here is the current behavior of the ufuncs and some comments. They don't > yet > > cover mixed types for binary functions, >

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
On Sun, May 25, 2008 at 2:29 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Sun, May 25, 2008 at 1:12 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Here is the current behavior of the ufuncs and some comments. They don't > yet > > cover mixed types for binary functions, >

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Robert Kern
On Sun, May 25, 2008 at 1:12 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > Hi All, > > Here is the current behavior of the ufuncs and some comments. They don't yet > cover mixed types for binary functions, > but when they do we will see things like: > > In [7]: power(True,10) > Out[7]: > array(

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
On Sun, May 25, 2008 at 12:55 PM, Charles R Harris < [EMAIL PROTECTED]> wrote: > > > On Sun, May 25, 2008 at 12:42 PM, Pauli Virtanen <[EMAIL PROTECTED]> wrote: > >> su, 2008-05-25 kello 12:12 -0600, Charles R Harris kirjoitti: >> [clip] >> > 1) Help strings on ufuncs don't work. This seems to be

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
On Sun, May 25, 2008 at 12:42 PM, Pauli Virtanen <[EMAIL PROTECTED]> wrote: > su, 2008-05-25 kello 12:12 -0600, Charles R Harris kirjoitti: > [clip] > > 1) Help strings on ufuncs don't work. This seems to be a problem with the > help function, as > >printing the relevant __doc__ works fine. Th

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
On Sun, May 25, 2008 at 12:12 PM, Charles R Harris < [EMAIL PROTECTED]> wrote: > Hi All, > > Here is the current behavior of the ufuncs and some comments. They don't > yet cover mixed types for binary functions, > but when they do we will see things like: > > In [7]: power(True,10) > Out[7]: > arr

Re: [Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Pauli Virtanen
su, 2008-05-25 kello 12:12 -0600, Charles R Harris kirjoitti: [clip] > 1) Help strings on ufuncs don't work. This seems to be a problem with the > help function, as >printing the relevant __doc__ works fine. The docstrings are currently > defined in >code_generators/generate_umath.py and

[Numpy-discussion] Current ufunc signatures for review

2008-05-25 Thread Charles R Harris
Hi All, Here is the current behavior of the ufuncs and some comments. They don't yet cover mixed types for binary functions, but when they do we will see things like: In [7]: power(True,10) Out[7]: array([ 0.5822807 , 0.66568381, 0.11748811, 0.97047323, 0.60095205, 0.81218886, 0.0167