On Fri, Jun 10, 2011 at 9:03 PM, Pauli Virtanen <p...@iki.fi> wrote: > On Fri, 10 Jun 2011 18:51:14 -0700, Keith Goodman wrote: > [clip] > > Maybe this is the same question, but are you maybe yes, maybe no on this > > too: > > > > >>> type(np.sum([1, 2, 3], dtype=np.int32)) == np.int32 > > False > > Note that this is a comparison between two Python types... > > > Ben, what happens if you put an axis in there? Like > > > > >>> np.sum([[1, 2, 3], [4,5,6]], axis=0).dtype == np.int32 > > > > Just wondering if this is another different-dtype-for-different-axis > > case. > > ... and this between Numpy dtypes (the RHS operand is cast to a dtype). > > And just to note for my previous response, I did compare the python types, not the dtypes.
Ben Root
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion