[Checkins] [zopefoundation/zope.interface] d50e3d: Allow Registering and unregistering instance metho...

GitHub noreply at github.com
Tue Nov 28 08:28:41 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: d50e3d4bed1cecb8b308656ca509824fd379c6cc
      https://github.com/zopefoundation/zope.interface/commit/d50e3d4bed1cecb8b308656ca509824fd379c6cc
  Author: ‮rekcäH nitraM‮ <spamfaenger at gmx.de>
  Date:   2017-11-28 (Tue, 28 Nov 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/interface/adapter.py
    M src/zope/interface/tests/test_adapter.py

  Log Message:
  -----------
  Allow Registering and unregistering instance methods as listeners (#102)

* Fixes #12 - registering instance methods as listeners doesn’t allow to easily unregister them as the registry tries to find the handler with 'is' but it should use '==' to allow the python BoundMethod wrapper (which is a new instance every time instance.$methodname is accessed).




More information about the checkins mailing list