[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-02 Thread Irit Katriel


Irit Katriel  added the comment:

Fixed in https://github.com/python/cpython/pull/30289.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-01 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
pull_requests: +28540
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30289

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-01 Thread Irit Katriel


New submission from Irit Katriel :

Following issue45711, the implementation of except* can be simplified - we do 
not need to use POP_EXCEPT_AND_RERAISE to reraise the exception calculated by 
PREP_RERAISE_STAR, we can instead 

1. Make PREP_RERAISE_STAR not push a dummy lasti to the stack.
2. USE ROT_TWO + POP_EXCEPT + RERAISE.


While I'm there, I will move the PREP_RERAISE_STAR helper functions 
(do_reraise_star etc) to exceptions.c.

--
assignee: iritkatriel
components: Interpreter Core
messages: 409458
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: Simplify except* implementation and move helpers to exceptions.c
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com