event.remove fails when used for method in 0.9
Issue #2832
resolved
_EventKey._key
uses id()
of listener function. This causes problem when method is used since in python new method object (with different id, but equal when compared with ==
) is created each time it's accessed. As a result event.remove
fails for it with exception "InvalidRequestError: No listeners found for event …
".
Comments (3)
-
repo owner -
repo owner - changed status to resolved
OK that was easy enough thanks for the report, 3d4d93332951a790e7d74afc5a3e.
-
repo owner - removed milestone
Removing milestone: 0.9.0 (automated comment)
- Log in to comment
I think I might have known that. will have to see if the id() logic can be more intelligent