[Numpy-discussion] Possible bug in np.array type calculation

2018-04-03 Thread Joseph Fox-Rabinovitz
I recently asked a question on Stack Overflow about whether `np.array` could raise an error if not passed a dtype parameter: https://stackoverflow.com/q/49639414/2988730. Turns out it can: np.array([1, [2]]) raises `ValueError: setting an array element with a sequence.` Surprisingly though,

Re: [Numpy-discussion] Possible bug in np.array type calculation

2018-04-03 Thread Charles R Harris
On Tue, Apr 3, 2018 at 3:45 PM, Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > I recently asked a question on Stack Overflow about whether `np.array` > could raise an error if not passed a dtype parameter: > https://stackoverflow.com/q/49639414/2988730. > > Turns out it can: > > np