[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Kshitish, it was inappropriate to reopen this issue. This forum is for tracking actual bugs in Python as opposed to bugs in a user's understanding of Python. My suggestion is that you post on StackOverflow so that the helpers there can explain what is g

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Kshitish
Kshitish added the comment: for i in range(1,11): try: if i == i: print(i) if i == 5: continue print(i,'poc') except: print("Out") Output: 1 2 3 4 5 6 7 8 9 10 As you can see the continue keyword is not working.

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Code is working correctly, not a bug. Perhaps you are mistaking `continue` for `break`. Kshitish, we keep telling you not to use the bug tracker as a help desk. This is now your eighth "bug report" that was 100% your misunderstanding. There are many other

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Eric V. Smith
Eric V. Smith added the comment: You've not said what happens, nor what you're expecting to happen, so we cannot help you. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Kshitish
New submission from Kshitish : Try & Except doesn't work probably. In the except continue keyword doesn't work probably. -- files: main.py messages: 382515 nosy: blue555 priority: normal severity: normal status: open title: Try and Except doesn't work properly type: behavior versions: