11-digit integer literal on a 32-bit CPU
Patrick Phalen
pphalen at teleo.net
Mon Mar 6 19:34:15 EST 2000
I need to assign an 11-digit Transaction ID, according to specs I'm
given by a client.
Begin with 10000000000
Increment by 1 for each new transaction -- 10000000001, etc.
(Store as string in a file between transactions)
As an integer literal, this overflows on an Intel CPU.
What's a nice trick for dealing with this?
Total transactions aren't likely to exceed 999,999
More information about the Python-list
mailing list