Message414470
Per interpreter seems best.
If someone using this feature writes a buggy implementation of a callback that doesn't chain reliably, that is a bug in their code and all of the fallout from that is "just" a bug to be fixed in said code.
Think of it like a C signal handler, the OS doesn't chain for you - it is the signal handler installer's responsibility to chain to the previous one. Not an unusual pattern for callback hooks in C.
We already have such global C callback hooks in SetProfile and SetTrace. https://docs.python.org/3/c-api/init.html#profiling-and-tracing
Those don't even provide for chaining. We could do the same here and not let a hook be set more than once instead of providing a Get API to allow for manual chaining. That seems less useful. |
|
Date |
User |
Action |
Args |
2022-03-03 20:44:21 | gregory.p.smith | set | recipients:
+ gregory.p.smith, barry, carljm, dino.viehland, Mark.Shannon, brandtbucher, itamaro |
2022-03-03 20:44:21 | gregory.p.smith | set | messageid: <1646340261.97.0.668581079838.issue46896@roundup.psfhosted.org> |
2022-03-03 20:44:21 | gregory.p.smith | link | issue46896 messages |
2022-03-03 20:44:21 | gregory.p.smith | create | |
|