[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset ec7c17ea236f71c8376abcc2930a7c857d417966 by Irit Katriel in branch 'main': bpo-46510: Add missing test for types.TracebackType/FrameType. Calculate them directly from the caught exception. (GH-30880)

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset d69d3d8b2fec501e51309221fb1fa4622c8a3db3 by Irit Katriel in branch 'main': bpo-46510: simplify exception handling code in xmlrpc (GH-30878) https://github.com/python/cpython/commit/d69d3d8b2fec501e51309221fb1fa4622c8a3db3 --

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: New changeset 45f5f52601ebccb195c19cb0a77beaf7f7dfa56a by Kumar Aditya in branch 'main': bpo-46510: update Python2-style exception handling in argparse (GH-30881) https://github.com/python/cpython/commit/45f5f52601ebccb195c19cb0a77beaf7f7dfa56a --

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Kumar Aditya
Kumar Aditya added the comment: > It's not my intention here to go on a search-and-destroy mission to remove > all calls to sys.exc_info(), that would cause unnecessary code churn. I am > reviewing them to see where the call the sys.exc_info is close to other > legacy problems/significant

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: It's not my intention here to go on a search-and-destroy mission to remove all calls to sys.exc_info(), that would cause unnecessary code churn. I am reviewing them to see where the call the sys.exc_info is close to other legacy problems/significant

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 nosy_count: 1.0 -> 2.0 pull_requests: +29061 pull_request: https://github.com/python/cpython/pull/30881 ___ Python tracker

[issue46510] Update Python2-style exception handling

2022-01-25 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +29060 pull_request: https://github.com/python/cpython/pull/30880 ___ Python tracker ___

[issue46510] Update Python2-style exception handling

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +29058 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30878 ___ Python tracker ___

[issue46510] Update Python2-style exception handling

2022-01-24 Thread Irit Katriel
New submission from Irit Katriel : Following issue45711 the redundancy in exc_info is now explicit. This means that we can now safely update places that still use python2-style exception handling code, like: exc_type, exc_value = sys.exc_info()[:2] try: