Terry J. Reedy added the comment:

Thanks for the investigation.  I copied the limit from a python-ideas example 
and did not realize that IDLE adds so much to the call stack.  I should add a 
bit on the subject to the IDLE doc in "3.2. IDLE-console differences".  (It can 
also impact tracebacks -- as reported on a couple of tracker issues.)

"IDLE adds it own calls to the call stack before (and possibly after) running 
user code.  Tracebacks are filtered to remove these, but the filtering may not 
be perfect.  Setting a recursion limit that is too low, such as with 
sys.setrecursionlimit(20), will result in mysterious malfunctions."

----------
components: +Documentation, IDLE
stage: test needed -> needs patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to