[issue45292] Implement PEP 654: Exception Groups

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

[issue45292] Implement PEP 654: Exception Groups

2022-01-06 Thread Irit Katriel
Irit Katriel added the comment: New changeset 9925e70e4811841556747a77acd89c1a70bf344a by Irit Katriel in branch 'main': bpo-45292: [PEP-654] exception groups and except* documentation (GH-30158) https://github.com/python/cpython/commit/9925e70e4811841556747a77acd89c1a70bf344a --

[issue45292] Implement PEP 654: Exception Groups

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28377 pull_request: https://github.com/python/cpython/pull/30158 ___ Python tracker ___

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The way these two opcodes are combined by the compiler to implement except* is described in the pseudo code here: https://github.com/python/cpython/pull/29581#issuecomment-975660029 except* uses JUMP_IF_NOT_EG_MATCH. The excepts (not-*) that collect

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The second opcode that the PR adds is PREP_RERAISE_STAR. This opcode takes a list that contains: 1. all the exceptions that were raised in the executed except* clauses 2. the unmatched part of the exception group It constructs the exception group that needs to

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: The PR adds two new opcodes. Let's start with the simpler of the two - JUMP_IF_NOT_EG_MATCH. This is the exception-group variation on JUMP_IF_NOT_EXC_MATCH. JUMP_IF_NOT_EXC_MATCH checks for a match by checking if the exception is of the given type. The

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Mark Shannon
Mark Shannon added the comment: PR 29581 resulted in a 1% slowdown, which is not terrible, but code not using except* should not be slowed down at all. IMO, the way to avoid the slowdown is to implement except* using the existing instruction set (perhaps with a few minor additions) We

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Guido van Rossum
Guido van Rossum added the comment: We should have a discussion here about improvements that Mark Shannon would like to see, in particular to do more work in the compiler instead of the interpreter. -- nosy: +Mark.Shannon, gvanrossum ___ Python

[issue45292] Implement PEP 654: Exception Groups

2021-12-14 Thread Irit Katriel
Irit Katriel added the comment: New changeset d60457a6673cf0263213c2f2be02c633ec2e2038 by Irit Katriel in branch 'main': bpo-45292: [PEP-654] add except* (GH-29581) https://github.com/python/cpython/commit/d60457a6673cf0263213c2f2be02c633ec2e2038 --

[issue45292] Implement PEP 654: Exception Groups

2021-11-16 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27824 pull_request: https://github.com/python/cpython/pull/29581 ___ Python tracker ___

[issue45292] Implement PEP 654: Exception Groups

2021-11-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 8b06d01507fd708468570eaa43a349828784489a by Irit Katriel in branch 'main': bpo-45292: Use raw strings for regex in tests (GH-29545) https://github.com/python/cpython/commit/8b06d01507fd708468570eaa43a349828784489a --

[issue45292] Implement PEP 654: Exception Groups

2021-11-13 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27794 pull_request: https://github.com/python/cpython/pull/29545 ___ Python tracker ___

[issue45292] Implement PEP 654: Exception Groups

2021-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tests emit some deprecation warnings : PYTHONWARNINGS=always ./python -Wall -m test test_exception_group 0:00:00 load avg: 0.39 Run tests sequentially 0:00:00 load avg: 0.39 [1/1] test_exception_group

[issue45292] Implement PEP 654: Exception Groups

2021-11-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45292] Implement PEP 654: Exception Groups

2021-11-05 Thread Irit Katriel
Irit Katriel added the comment: New changeset 3509b26c916707363c71a1df040855e395cf4817 by Irit Katriel in branch 'main': bpo-45292: [PEP 654] Update traceback display code to work with exception groups (GH-29207)

[issue45292] Implement PEP 654: Exception Groups

2021-10-25 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27475 pull_request: https://github.com/python/cpython/pull/29207 ___ Python tracker ___

[issue45292] Implement PEP 654: Exception Groups

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset f30ad65dbf3c6b1b5eec14dc954d65ef32327857 by Irit Katriel in branch 'main': bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569) https://github.com/python/cpython/commit/f30ad65dbf3c6b1b5eec14dc954d65ef32327857

[issue45292] Implement PEP 654: Exception Groups

2021-09-26 Thread STINNER Victor
Change by STINNER Victor : -- title: Implement PEP 654 -> Implement PEP 654: Exception Groups ___ Python tracker ___ ___