This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error when nesting many while loops
Type: compile error Stage:
Components: None Versions: Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: gpolo, jackdied, rgreimel
Priority: normal Keywords:

Created on 2008-04-25 12:10 by rgreimel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg65778 - (view) Author: Robert Greimel (rgreimel) Date: 2008-04-25 12:10
nesting 20 while loops works OK.
The 21st leads to the cryptic error message

python: Python/compile.c:295: PyAST_Compile: Assertion `co ||
PyErr_Occurred()' failed.
Abort

when trying to execute the script.
msg65779 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-04-25 12:43
Apparently this was fixed at rev 52504 python-trunk. 
Which python version did you use ?
msg65780 - (view) Author: Robert Greimel (rgreimel) Date: 2008-04-25 13:04
Python 2.5 (r25:51908, Nov  6 2007, 15:55:44) 

from Fedora 7 (python-2.5-15.fc7)
msg70581 - (view) Author: Jack Diederich (jackdied) * (Python committer) Date: 2008-08-01 18:30
This was fixed in more recent versions of 2.5, it now raises a
"SystemError: too many statically nested blocks"

Thanks for the tip Guilherme.

Marking closed.
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46940
2008-08-01 18:30:39jackdiedsetstatus: open -> closed
resolution: out of date
messages: + msg70581
nosy: + jackdied
2008-04-25 13:04:15rgreimelsetmessages: + msg65780
2008-04-25 12:43:55gpolosetnosy: + gpolo
messages: + msg65779
2008-04-25 12:10:56rgreimelcreate