Taille de Python variable
import sys
sys.getsizeof(object[, default])
# returns size of object in bytes
Maren-of-Alterside
import sys
sys.getsizeof(object[, default])
# returns size of object in bytes
>>> import sys
>>> x = 2
>>> sys.getsizeof(x)
24
>>> sys.getsizeof(sys.getsizeof)
32
>>> sys.getsizeof('this')
38
>>> sys.getsizeof('this also')
48