Message380434
We have automatic chaining, so you don't need to use "from X" unless you want to have some control on the traceback message. Even without knowing of this syntax (and without using "from exc"), a user will get a traceback message similar to what is shown in the example. What is the purpose of the entire section then?
As I see it, the purpose might be providing some details about how exactly chaining works, so a user: a) could make an informed decision whether they need "from X" or not, b) would know how to retrieve the linked exception programmatically.
I generally feel that we don't want to deprive a user from special attributes, in Python they are everywhere, you cannot even construct a class instance without __init__(). |
|
Date |
User |
Action |
Args |
2020-11-05 21:11:08 | Vladimir Ryabtsev | set | recipients:
+ Vladimir Ryabtsev, rhettinger, eric.araujo, methane, docs@python, maxking |
2020-11-05 21:11:08 | Vladimir Ryabtsev | set | messageid: <1604610668.88.0.94913883187.issue42179@roundup.psfhosted.org> |
2020-11-05 21:11:08 | Vladimir Ryabtsev | link | issue42179 messages |
2020-11-05 21:11:08 | Vladimir Ryabtsev | create | |
|