bpo-42064: Pass module state to trace, progress, and authorizer callbacks#27940
bpo-42064: Pass module state to trace, progress, and authorizer callbacks#27940encukou merged 17 commits into
Conversation
encukou
left a comment
There was a problem hiding this comment.
Nitpick:
SET_CALLBACK_CONTEXT and CLEAR_CALLBACK_CONTEXT can both be regular functions rather than macros, making them shorter and more readable.
That leaves VISIT_CALLBACK_CONTEXT, which I think is too robust for the 3 uses. But that's very much a personal opinion.
Sorry, something went wrong.
|
Sorry, something went wrong.
|
NB, this needs to be rebased onto |
Sorry, something went wrong.
Personally I'd prefer a type-safe function with a more complex argument, but as I said, this is nitpicking. Feel free to make them all macros for consistency, if you find it easier to read :) I plan to review #28088 first. |
Sorry, something went wrong.
I'll keep
Great, thanks! BTW, I'm creating a bpo for cleaning up connection |
Sorry, something went wrong.
|
All right, no more changes comin' up, unless you've got further remarks :) |
Sorry, something went wrong.
encukou
left a comment
There was a problem hiding this comment.
Looks good, thanks!
Sorry, something went wrong.
Likewise! |
Sorry, something went wrong.
https://bugs.python.org/issue42064