Well, there's no workaround. But you can use two approaches
Store the integers as string using
str
orrepr
. If the ints are big, you can even use string formattinguse cPickle/pickle module to store and retrieve data. This is a good way if you have data types other than basic types. For basics
int
s andfloat
s this actually is slower and takes more space than just storing strings