Thank you very much for explaining the comment. I see what you mean now. It was not obvious to me that np.array([]) would be float and I should have realised type promotion should be more organised when the arguments have varying type.

p.s. documentation bug:
http://docs.scipy.org/doc/numpy/numpy-ref.pdf
p582. result_type is described as: "Returns the type that results from applying the NumPy” ???

Correct text on p585.

Graeme.

On 24 Feb 2014, at 01:56, njsmith <notifications@github.com> wrote:

> Usually the comment applies to the very bottom line of the block that the comment appears under -- this is the one that people clicked on and then typed a comment for. So in this case the objection is thatnp.array([]) always returns an array whose dtype is float, but instead we should be returning an array whose dtype matches the input.