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: does not raise SystemError on too many nested blocks
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: ghazel, nnorwitz
Priority: normal Keywords:

Created on 2006-09-26 06:10 by ghazel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
nested.py ghazel, 2006-09-26 06:10 nested example
nest.diff nnorwitz, 2006-09-27 04:45 v1
Messages (3)
msg29991 - (view) Author: Greg Hazel (ghazel) Date: 2006-09-26 06:10
Simple script attached, in python 2.4.3 I get 
reasonable results:

C:\>.\python24\python.exe nested.py
  File "nested.py", line 22
    while 22:
SystemError: too many statically nested blocks

C:\>

However in python 2.5 I get nothing:

C:\>.\python25\python.exe nested.py

C:\>


Shouldn't the same error be raised? (Note that it's 
not executing the file, or the prints would occur).
msg29992 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-09-27 04:45
Logged In: YES 
user_id=33168

The attached patch fixes the problem.  I'm not so sure that
the error should be a SystemError, but some exception should
definitely be produced.
msg29993 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-10-28 21:59
Logged In: YES 
user_id=33168

Committed revision 52510. (2.5)
Committed revision 52504. (2.6)
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44030
2006-09-26 06:10:00ghazelcreate