zopefoundation / persistent

automatic persistence for Python objects
https://pypi.org/project/persistent/
Other
46 stars 28 forks source link

Persistent.__setstate__ C SILENTLY fails on non-builtin dict #60

Closed agroszer closed 7 years ago

agroszer commented 7 years ago

Key interning introduced in https://github.com/zopefoundation/persistent/commit/7bd85c189ae17be514f4989bfb8f79f4d8013943 makes __setstate__ SILENTLY fail when a non-builtin dict is passed as state.

See https://github.com/agroszer/persistent/commit/1c1cebaf79914420a9de61e55fb72a75981965b2 how to provoke that.

stephan-hof commented 7 years ago

I see a few possible options here: