[Checkins] [zopefoundation/Acquisition] f8fea3: Fix #7. Make the Python Acquirer cooperatively cal...

GitHub noreply at github.com
Tue May 19 22:34:20 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Acquisition
  Commit: f8fea38b8cd7e531810f2ed0ea041fb3e221fd55
      https://github.com/zopefoundation/Acquisition/commit/f8fea38b8cd7e531810f2ed0ea041fb3e221fd55
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-05 (Tue, 05 May 2015)

  Changed paths:
    M CHANGES.rst
    M src/Acquisition/__init__.py
    M src/Acquisition/tests.py

  Log Message:
  -----------
  Fix #7. Make the Python Acquirer cooperatively call super, and test this. Also provides a more informative traceback if lookup failed in that case which assists debugging if the inheritance hierarchy is complex.


  Commit: 5ec1f3f7e1b5ff4f9abf9b427bec237f16ffebeb
      https://github.com/zopefoundation/Acquisition/commit/5ec1f3f7e1b5ff4f9abf9b427bec237f16ffebeb
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-13 (Wed, 13 May 2015)

  Changed paths:
    M CHANGES.rst
    M src/Acquisition/__init__.py
    M src/Acquisition/tests.py

  Log Message:
  -----------
  Let object.__getattribute__ work in methods wrapped with an acquisition wrapper. Fixes #9.

Dict-based objects are easy, just an assignment. But objects with
__slots__ require generating new classes on-the-fly with matching
descriptors (which is how slots are actually implemented). One
prominent use-case is the `persistent` library which is slot-based.

This is only implemented for the pure-python version because it's only
been observed to be a problem in that use-case.


  Commit: 38ae2cd0bbda08836af9468ef1a16b2789dd3bef
      https://github.com/zopefoundation/Acquisition/commit/38ae2cd0bbda08836af9468ef1a16b2789dd3bef
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2015-05-19 (Tue, 19 May 2015)

  Changed paths:
    M src/Acquisition/__init__.py
    M src/Acquisition/tests.py

  Log Message:
  -----------
  Address feedback: Mangle the _DERIVED attribute to prevent collisions. Delete the traceback local when we're done with it. Properly specify the slots in the tests.


  Commit: d37122e4f611a23eb49bf0a4d0f4f5342cecef24
      https://github.com/zopefoundation/Acquisition/commit/d37122e4f611a23eb49bf0a4d0f4f5342cecef24
  Author: Tres Seaver <tseaver at palladion.com>
  Date:   2015-05-19 (Tue, 19 May 2015)

  Changed paths:
    M CHANGES.rst
    M src/Acquisition/__init__.py
    M src/Acquisition/tests.py

  Log Message:
  -----------
  Merge pull request #10 from NextThought/object_getattribute_wrapped_types

Make object.__getattribute__ work in methods wrapped with an acquisition wrapper.


Compare: https://github.com/zopefoundation/Acquisition/compare/6f20ea96fff4...d37122e4f611


More information about the checkins mailing list