Too Many if Statements?

rainbow.cougar at gmail.com rainbow.cougar at gmail.com
Wed Feb 8 15:04:54 EST 2006


> > I made a script with 100,000 if's, (code below) and it appears
> > to work on a couple systems, including Python 2.4.2 on Win32-XP.
> > So at first cut, it doesn't seem to be just the if-count that
> > triggers the bug.
>
> I tried that code. It runs fine.
>
> However, the following gives a SystemError with only 2500 elif's.
>
>...
>
> I tried this with Python 2.3.3 and 2.3.4 (Linux) and both fail.

Just tried it with 2.4.2 On FreeBSD 6.0 and I get the same result:

Traceback (most recent call last):
  File "buggyif.py", line 10, in ?
    exec prog 
SystemError: com_backpatch: offset too large

Curtis




More information about the Python-list mailing list