"SystemError: com_backpatch: offset too large" thrown when executing the code generated by the following 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
Its clear that, if the lenght statement goes beyond certain length, it throughs this error.
Can some one give more insights to it in detail?