SciPy

numpy.generic.nbytes

attribute

generic.nbytes

length of item in bytes