Open rhansen opened 3 days ago
FWIW, no need to force push changes--it makes reviewing harder. It's fine to just commit normally, and then everything gets squashed.
Force pushing is the only way to update the commit message.
Yes, but it makes reviewing more difficult. FWIW, nobody really cares about the commit messages in the PR itself, the end message that gets squashed is really what matters. (There's a section in the devguide about this, IIRC.)
This enables users to associate state with the callback without relying on globals.
Also:
Drop the pointer from the
PyContext_WatchCallback
typedef. This de-obfuscates the fact that pointers are involved, and makes it possible to forward-declare functions to improve readability:This will conflict with #124741; if one is merged I'll rebase the other.
📚 Documentation preview 📚: https://cpython-previews--127140.org.readthedocs.build/