News for hackers. Stuff that matters.
Re:Measure the Real Size of Any Python Object by jsnathan on Thursday July 21, 2016 @02:54PM (#12139127)

  >>> import pysize
  >>> import sys
  >>> pysize.get_size([])
  0
  >>> sys.getsizeof([])
  72
  >>> a = [[],{},()]
  >>> pysize.get_size(a)
  0
  >>> sys.getsizeof(a)
  96   # probably also wrong?
It's cool idea, but needs a bit more work I think.
Re:Measure the Real Size of Any Python Object by wjarjoui on Thursday July 21, 2016 @03:14PM (#12139275)
Definitely, I'm still not sure it's giving the 100% accurate size in memory, however it is definitely a step up from sys.getsizeof.

I've fixed the bug causing the above, thank you for the call out!