[Checkins] [zopefoundation/zope.interface] 48faf8: Fixes #12 - registering instance methods as listen...

GitHub noreply at github.com
Thu Sep 14 13:55:12 CEST 2017


  Branch: refs/heads/fix_register_instance_methods
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 48faf8296b460144778778bedc4f371582bf23a2
      https://github.com/zopefoundation/zope.interface/commit/48faf8296b460144778778bedc4f371582bf23a2
  Author: Martin Häcker <dwt at crest.local>
  Date:   2017-09-14 (Thu, 14 Sep 2017)

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

  Log Message:
  -----------
  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