SystemError: com_backpatch: offset too large

Jeff Shannon jeff at ccvcorp.com
Fri Nov 5 19:16:38 EST 2004


alban.minassian at wanadoo.fr wrote:

>Thank, but same problem (now, i have com_backpatch: offset too large
>at line 4567 !)
>

You'll probably get more effective help if you give us more 
information.  In particular, copy & paste the *entire* traceback that 
you're getting.  It's probably also a good idea to include at least a 
segment of relevant code -- a few lines on either side of the one that's 
generating the error, plus any functions that are called there.

Given the message that you posted a link to earlier, it sounds like the 
problem *might* simply be that your code branch is too long -- that is, 
that you've got too many statements at the same scoping level.  To fix 
this, find a way to reorganize your code to break it up into smaller 
functions.

Where are all of these strings coming from?  You can almost certainly 
find some way to modify the data source into something that you can 
iterate over, in a loop, rather than typing 'var += x + y + z' thousands 
of times.

Jeff Shannon
Technician/Programmer
Credit International




More information about the Python-list mailing list