On 8/30/06, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > The current behaviour makes sense, but is maybe not consistent: > > N.array([],dtype=object).size == 1 > N.array([[],[]],dtype=object).size == 2
Yes, including one more term in this check: In [5]: N.array([],dtype=object).size Out[5]: 1 In [6]: N.array([[]],dtype=object).size Out[6]: 1 In [7]: N.array([[],[]],dtype=object).size Out[7]: 2 Intuitively, I'd have expected the answers to be 0,1,2, instead of 1,1,2. Cheers, f ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion