Terry J. Reedy <tjre...@udel.edu> added the comment:

[Raymond: I presume you meant that C iterators have not been a problem in the 
wild and have done fine.]

The RuntimeError message "maximum recursion depth exceeded" is not exactly 
correct. As Kristján implied in his first message, what has been reached is the 
maximum call stack or nested call depth. It happens to be that recursive calls 
are the easiest way to do that, but Python makes it somewhat easy to 
dynamically generate thousands of different callables making thousands of 
non-recursive nested calls. (A static expression with even 100 nested calls 
fails compilation with a MemoryError (3.2.3).)

----------

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

Reply via email to