title: Pari GP function 'read' produces *** expression nested too deeply
body: <p>I had Pari calculate some polynomials and write them in a file. Now I want to read them back in and I encounter</p>
  
  <p>***   expression nested too deeply.</p>
  
  <p>There are no loops in the file it is simply {P[n]=(some (Laurent) polynomial in q);} on the n-th line.</p>
  
  <p>The file is only ~500 KB and I've read in much larger files.</p>
  
  <p>I tried checking if there are errors and can't find them. Next I tried to simplify the file and read in the first hundred polynomials or so. This worked and then I tried to load just one of the larger polynomial in. It didn't work and then I removed some terms in the file and found that if a removed enough terms it could read it in.</p>
  
  <p>For example I put in</p>
  
  <pre><code>default(parisize,10000000000);
  P=vector(1000,i,0);
  \r {filename}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>default(parisize,10000000000);
  P=vector(1000,i,0);
  read(filename)
  </code></pre>
  
  <p>with the file just one line of the form</p>
  
  <pre><code>P[139]=(q^152352 + ... + 33495418*q^1184)/q^76176
  </code></pre>
  
  <p>here is can be read</p>
  
  <p>with the file just one line exactly the same except an extra +1 as given</p>
  
  <pre><code>P[139]=(q^152352 + ... + 33495418*q^1184+1)/q^76176
  </code></pre>
  
  <p>it can't be read in.</p>