[Checkins] [zopefoundation/zope.interface] 9de723: Fix #85 by implementing __reduce__ to omit _v_ att...

GitHub noreply at github.com
Wed Jun 14 13:53:21 CEST 2017


  Branch: refs/heads/issue85-take2-reduce
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 9de7239b28a9817ad43c04e438743a22d964545e
      https://github.com/zopefoundation/zope.interface/commit/9de7239b28a9817ad43c04e438743a22d964545e
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/interface/registry.py
    M src/zope/interface/tests/test_registry.py

  Log Message:
  -----------
  Fix #85 by implementing __reduce__ to omit _v_ attributes.

This is an alternative to #86 and was suggested by @mgedmin in #85.

There are tests to be sure this works for subclasses like Pyramid's
Registry that extend dict too.

This doesn't change the pickle format, we were storing the output of
object.__reduce__ previously.




More information about the checkins mailing list