Skip to content

Commit

Permalink
Numpy outputs size of array via nbytes attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ucyo committed Oct 6, 2016
1 parent 6b3dd89 commit 7dd27e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serialization/serialsocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main():
rep.bind('inproc://a')
req.connect('inproc://a')
A = numpy.ones((1024,1024))
print ("Array is %i bytes" % (A.size * A.itemsize))
print ("Array is %i bytes" % (A.nbytes))

# send/recv with pickle+zip
req.send_zipped_pickle(A)
Expand Down

0 comments on commit 7dd27e1

Please sign in to comment.