Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
VirtualView (for displaying large amount of items)
-
in python, the largest integer is not limited by maxint... try maxint**2 to confirm! it may be a good idea to stay below that number for speed though
-
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. :-)