[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset c66fc0fb53b5316dc325fde3bc738890515d38a4 by Irit Katriel in branch 'main': bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159) https://github.com/python/cpython/commit/c66fc0fb53b5316dc325fde3bc738890515d38a4

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Irit Katriel added the comment: With the patch: >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>> e.split(ValueError)[0].__note__ 'a note' >>> e.split(V

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30159 ___ Python tracker ___ ___

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-16 Thread Irit Katriel
New submission from Irit Katriel : >>> e = ExceptionGroup("eg", [ValueError(1), TypeError(2)]) >>> e.__note__ = "a note" >>> e.split(ValueError) (ExceptionGroup('eg', [ValueError(1)]), ExceptionGroup('eg', [TypeError(2)])) >>> e.split(ValueError)[0].__note__ >>> e.subgroup(ValueError).__note__