This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel
Date 2021-12-16.23:32:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639697569.7.0.526447928683.issue46107@roundup.psfhosted.org>
In-reply-to
Content
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(ValueError)[1].__note__
'a note'
>>> e.subgroup(ValueError).__note__
'a note'
>>>
History
Date User Action Args
2021-12-16 23:32:49iritkatrielsetrecipients: + iritkatriel
2021-12-16 23:32:49iritkatrielsetmessageid: <1639697569.7.0.526447928683.issue46107@roundup.psfhosted.org>
2021-12-16 23:32:49iritkatriellinkissue46107 messages
2021-12-16 23:32:49iritkatrielcreate