[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 e

[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,

[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-26 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 <https://bug

[issue44746] Improper behaviour of 'finally' keyword

2021-07-26 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: nor

[issue38247] list(str.split(ch)) Does not print blank elements upon repeating character(ch)

2019-09-21 Thread Aman Priyanshu
Change by Aman Priyanshu : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue38247> ___ ___ Python-bugs-list

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2019-09-21 Thread Aman Priyanshu
Change by Aman Priyanshu : -- pull_requests: +15903 pull_request: https://github.com/python/cpython/pull/16324 ___ Python tracker <https://bugs.python.org/issue15

[issue38247] list(str.split(ch)) Does not print blank elements upon repeating character(ch)

2019-09-21 Thread Aman Priyanshu
New submission from Aman Priyanshu : I have been annoyed by the fact that at multiple where we print list(str.split(ch)) we get empty elements in place of repeated characters (ch). Example: >>> print(list("Hello World How Are You?".split(" "))) ['H