[ python-Bugs-1565514 ] does not raise SystemError on too many nested blocks

SourceForge.net noreply at sourceforge.net
Wed Sep 27 06:45:21 CEST 2006


Bugs item #1565514, was opened at 2006-09-25 23:10
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1565514&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Hazel (ghazel)
Assigned to: Nobody/Anonymous (nobody)
Summary: does not raise SystemError on too many nested blocks

Initial Comment:
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).

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-26 21:45

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1565514&group_id=5470


More information about the Python-bugs-list mailing list