How would I get the human readable output of __sizeof__
. For example:
# No
>>> x.__sizeof__()
16725808
# Yes
>>> x.__sizeof__()
16.7 MB
How would I get the human readable output of __sizeof__
. For example:
# No
>>> x.__sizeof__()
16725808
# Yes
>>> x.__sizeof__()
16.7 MB