New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A signal handler cannot be a method on an object #2581
Comments
Added code tags for readability. |
I looked into it and found this was because |
Yes, that is correct. IIRC, there is not a great way to pass this info. I'd have to look. Happy to hear a proposal. |
How do you think about the draft? #2608 |
Describe the bug
If I try and register a method on an object as a signal handler, an exception is thrown because it is not possible to set an attribute on a bound method
Code snippet
Expected behavior
I would expect the bound method to be registered, and then called when the signal is dispatched.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: