Why is size of 2⁶³ 36 bytes, but 24 bytes for 2⁶³-1? – 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 is size of 2⁶³ 36 bytes, but 24 bytes for 2⁶³-1? – stackoverflow.com"