Comment

Comment by jsnathan

  >>> 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.
parent jsnathan 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton