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.

Author rameshsahoo11
Recipients Jeffrey.Kintscher, eric.smith, rameshsahoo11, steven.daprano
Date 2020-08-11.07:34:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597131254.16.0.952619655926.issue41518@roundup.psfhosted.org>
In-reply-to
Content
Additional note: 

The following program completes all 5 iterations.  

#!/usr/bin/python3
stack = [s for s in range(5)]
c = 0
for i in stack:
  c += 1
  print(f"{'='*10} loop {c} {'='*10}")
  if i == 0 or i == 1 or i == 2:
    print(f"{i}\n")
  else:
    print(f"{i}\n")


$ python3 test1.py 
========== loop 1 ==========
0

========== loop 2 ==========
1

========== loop 3 ==========
2

========== loop 4 ==========
3

========== loop 5 ==========
4
History
Date User Action Args
2020-08-11 07:34:14rameshsahoo11setrecipients: + rameshsahoo11, eric.smith, steven.daprano, Jeffrey.Kintscher
2020-08-11 07:34:14rameshsahoo11setmessageid: <1597131254.16.0.952619655926.issue41518@roundup.psfhosted.org>
2020-08-11 07:34:14rameshsahoo11linkissue41518 messages
2020-08-11 07:34:14rameshsahoo11create