Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-15 Thread Benjamin Root
On Wed, Feb 15, 2012 at 8:29 AM, Benjamin Root wrote: > > > On Tuesday, February 14, 2012, Mark Wiebe wrote: > > On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root wrote: > > > > On Tuesday, February 14, 2012, Mark Wiebe wrote: > >> On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root wrote: > >>> > >>

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-15 Thread Benjamin Root
On Tuesday, February 14, 2012, Mark Wiebe wrote: > On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root wrote: > > On Tuesday, February 14, 2012, Mark Wiebe wrote: >> On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root wrote: >>> >>> Just a thought I had. Right now, I can pass a list of python ints or fl

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Mark Wiebe
On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root wrote: > On Tuesday, February 14, 2012, Mark Wiebe wrote: > > On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root wrote: > >> > >> Just a thought I had. Right now, I can pass a list of python ints or > floats into np.array() and get a numpy array with

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Benjamin Root
On Tuesday, February 14, 2012, Mark Wiebe wrote: > On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root wrote: >> >> Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same fo

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Mark Wiebe
On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root wrote: > Just a thought I had. Right now, I can pass a list of python ints or > floats into np.array() and get a numpy array with a sensible dtype. Is > there any reason why we can't do the same for python's datetime? Right > now, it is very easy

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Charles R Harris
On Tue, Feb 14, 2012 at 9:17 PM, Benjamin Root wrote: > Just a thought I had. Right now, I can pass a list of python ints or > floats into np.array() and get a numpy array with a sensible dtype. Is > there any reason why we can't do the same for python's datetime? Right > now, it is very easy

[Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Benjamin Root
Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same for python's datetime? Right now, it is very easy for me to make a list comprehension of datetime objects using st