[NumPy-Tickets] [NumPy] #1683: numpy does not correctly support sys.getsizeof

NumPy Trac numpy-tickets@scipy....
Wed Nov 24 09:04:29 CST 2010


#1683: numpy does not correctly support sys.getsizeof
-------------------------+--------------------------------------------------
 Reporter:  ghazel       |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:  2.0.0   
Component:  numpy.core   |     Version:  1.5.0   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by rgommers):

 Looks like implementation could be copied from nbytes method:
 {{{
 In [5]: a = np.arange(10)

 In [6]: a.nbytes
 Out[6]: 40

 In [7]: a = np.arange(10000)

 In [8]: a.nbytes
 Out[8]: 40000
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1683#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list