Why size of 2⁶³ is 36 bytes, and 2⁶³-1 is 24 bytes? – stackoverflow.com

Everything in python is an object. So the size of an int in python will be larger than usual. >>> sys.getsizeof(int()) 24 Ok, but why does it get 12 more bytes for 2⁶³ compared too 2⁶³ - 1 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why size of 2⁶³ is 36 bytes, and 2⁶³-1 is 24 bytes? – stackoverflow.com"