-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pickle v2: improve handling for object references
We now allow Pickle Protocol v2 __getnewargs__() to contain references. The unpickler uses a new strategy for handling references. It now places Proxy objects into the referencing machinery to break dependencies between construction arguments and parent objects. A final sweep is done at the end of restore() to swap proxies for their real instances. This allows for proper referencing within objects returned by __getnewargs__(). Related-to: #78 Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information
Showing
3 changed files
with
99 additions
and
8 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