Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On deactivate release in-slots objects only for classes that don't ov…
…erride __new__ Commit fe2219f taught Persistent to release in-slots objects on deactivation. That however broke pure-python implementation of many things because they were using __slots__ as a place which survive deactivation. As per discussion in #44 and resolution: #44 (comment) let's try to preserve backward compatibility by not releasing slots for classes that override __new__ /proposed-by-and-helped @jimfulton
- Loading branch information
Showing
3 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters