Serialize long number in python
<p>What would be the best way to serialize a long number in python ?</p>

<p>I'm thinking pickle, but it`s still returning the "shortened" version. I'd obviously to write all the digits ..</p>

<pre><code>longNum = math.pow(2,1000)


f = open("file", "w")
pickle.dump(str(longNum), f)
f.close()

f = open("file","r")
longNum = pickle.load(f)
f.close()

print longNum
</code></pre>

<blockquote>
  <p>1.07150860719e+301</p>
</blockquote>
