Message407722
The new __note__ feature for exception could be useful, but the documentation (and the section in "What's new") aren't good enough:
"__note__: A mutable field which is :const:`None` by default and can be set to a string. If it is not :const:`None`, it is included in the traceback. This field can be used to enrich exceptions after they have been caught."
This is more of a definition than an explanation. If this is solving a problem, there should be an explanation that starts from the problem being solved, hopefully with 2-3 examples where this is useful. If people start using this feature without some guidance, they might put things in the note that should have been in the message. |
|
Date |
User |
Action |
Args |
2021-12-05 17:49:09 | cool-RR | set | recipients:
+ cool-RR, docs@python, iritkatriel |
2021-12-05 17:49:09 | cool-RR | set | messageid: <1638726549.23.0.192280798069.issue45990@roundup.psfhosted.org> |
2021-12-05 17:49:09 | cool-RR | link | issue45990 messages |
2021-12-05 17:49:09 | cool-RR | create | |
|