[Numpy-discussion] 0-dim arrays inconsistency

2013-05-10 Thread Neal Becker
np.array ((0,0))
Out[10]: array([0, 0])   ok, it's 2 dimensional

In [11]: np.array ((0,0)).shape
Out[11]: (2,)   except, it isn't


___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 0-dim arrays inconsistency

2013-05-10 Thread Nathaniel Smith
Hi Neal,

On Fri, May 10, 2013 at 7:36 PM, Neal Becker ndbeck...@gmail.com wrote:
 np.array ((0,0))
 Out[10]: array([0, 0])   ok, it's 2 dimensional

Think you may have confused yourself :-). It's 1 dimensional with 2 elements...

 In [11]: np.array ((0,0)).shape
 Out[11]: (2,)   except, it isn't

...as per above. (Not sure where the 0-dim part comes in.)

-n
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 0-dim arrays inconsistency

2013-05-10 Thread Neal Becker
Neal Becker wrote:

 np.array ((0,0))
 Out[10]: array([0, 0])   ok, it's 2 dimensional
 
 In [11]: np.array ((0,0)).shape
 Out[11]: (2,)   except, it isn't

Sorry for the stupid question - please ignore

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion