Insights on SystemError: com_backpatch: offset too large
<p>"SystemError: com_backpatch: offset too large" thrown when executing the code generated by the following code.</p>

<pre><code>f = open("test.py", "w")
f.write("def fn():\n   a =1000\n")
for a in xrange(3000):
   if a == 0:
      f.write("   if a == "+str(a)+": \n      print  "+str(a)+"\n")
   else:
      f.write("   elif a == "+str(a)+": \n      print  "+str(a)+"\n")



f.close()

import test
</code></pre>

<p>Its clear that, if the lenght statement goes beyond certain length, it throughs this error.</p>

<p>Can some one give more insights to it in detail?</p>
