[issue45607] Make it possible to enrich an exception's error message

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

[issue45607] Make it possible to enrich an exception's error message

2021-12-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 5bb7ef2768be5979b306e4c7552862b1746c251d by Irit Katriel in branch 'main': bpo-45607: Make it possible to enrich exception displays via setting their __note__ field (GH-29880)

[issue45607] Make it possible to enrich an exception's error message

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

[issue45607] Make it possible to enrich an exception's error message

2021-11-30 Thread Irit Katriel
Irit Katriel added the comment: Issue28953 is another use case for this feature. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45607] Make it possible to enrich an exception's error message

2021-10-25 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: This code shows my current best workaround based on a wrapper exception, with the traceback below annotating the additional details that I'd prefer to omit for clarity: $ python example.py Traceback (most recent call last): File "example.py", line 8,

[issue45607] Make it possible to enrich an exception's error message

2021-10-25 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45607] Make it possible to enrich an exception's error message

2021-10-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +Zac Hatfield-Dodds ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45607] Make it possible to enrich an exception's error message

2021-10-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45607] Make it possible to enrich an exception's error message

2021-10-25 Thread Irit Katriel
New submission from Irit Katriel : The requirement comes from Hypothesis, see https://github.com/python/cpython/pull/28569#discussion_r730338369 It is necessary there to add a note to an exception describing which test case it comes from. The note should be printed by __str__ of this