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: Is there a nested loop limit?
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: mwh Nosy List: chimeda, mwh
Priority: normal Keywords: patch

Created on 2004-07-07 17:12 by chimeda, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg46325 - (view) Author: chimeda (chimeda) Date: 2004-07-07 17:12
I am writing a program to do some reliability calculations 
that require several nested for-loops.  However, I 
believe that as the models become more complex, the 
number of required for-loops will increase.  Does Python 
have a limit on the number of nested for-loops?  Thanks.

-Chad
msg46326 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-07-07 17:36
Logged In: YES 
user_id=6656

What a strange way to try to get help.

http://www.python.org/community/lists.html

may help you find better ways.

The answer, FWIW, is "yes".  I think the limit is 20. 
Please don't post questions to the patch tracker again!
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40517
2004-07-07 17:12:50chimedacreate