VirtualView (for displaying large amount of items)
-
Sys.maxint in an int but 2*sys.maxint is a long.
import sys # on a 32-bit machine... print(type(sys.maxint), sys.getsizeof(sys.maxint)) # (<type 'int'>, 12) print(type(sys.maxint*2), sys.getsizeof(sys.maxint*2)) # (<type 'long'>, 18) print(type(sys.maxint**2), sys.getsizeof(sys.maxint**2)) # (<type 'long'>, 22) print(type(float(0)), sys.getsizeof(float(0))) # (<type 'float'>, 16)
-
ahh, the largest integer, not largest int :). a
long
is an integer. since he was not instantiating an array that size, or passing the number to ctypes, etc, my point was he doesnt have to be limited to maxint. then again, it will take an awfullylong
time to scroll to the bottom of a few billion entries.
-
I am going back to a 16 bit system, life is easier :)
-
I'm sticking with 24 um I mean 31 er 64. :-)