[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: Really? Why is it not working for me then? I am using the latest version of VS code application. I have attached a screenshot,have a look at this. On Tue, Jul 27, 2021 at 6:22 PM Paul Moore wrote: > > Paul Moore added the comment: > > It works as expected (the

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: Ok, I'll check it out. Thank you for the response. On Tue, 27 Jul, 2021, 20:36 Steven D'Aprano, wrote: > > Steven D'Aprano added the comment: > > Confirmed that it is working in Linux. I assume Paul has tested it under > Windows, and it sounds like Ronald has

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Confirmed that it is working in Linux. I assume Paul has tested it under Windows, and it sounds like Ronald has tested it in VS Code as well. I'm closing this as Not A Bug. Priyanshu, if you disagree and can replicate the error, this time checking the

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: The output from the print statement in the finally block is before the traceback, you need to scroll back in the output buffer in VS Code. -- nosy: +ronaldoussoren ___ Python tracker

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Paul Moore
Paul Moore added the comment: It works as expected (the print statement in the "finally" clause is executed) for me. -- ___ Python tracker ___

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: I have attached a file as an example. The finally clause is not getting executed if we make use of raise keyword in except clause. It should have been executed in this case case, right? -- Added file: https://bugs.python.org/file50185/error.py

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot reproduce. >>> try: ... 1/0 ... except: ... print('except') ... raise ... finally: ... print('finally') ... except finally Traceback (most recent call last): File "", line 2, in ZeroDivisionError: division by zero Could you

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: The 'finally' clause is not executed when an exception occurs and 'raise' keyword is used in except clause. -- ___ Python tracker ___

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
New submission from Priyanshu : The finally clause is not executed when an exception occurs and 'raise' keyword is used in except clause. -- components: Windows messages: 398278 nosy: Priyanshu, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: