-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-35900: Enable custom reduction callback registration in _pickle #12499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
fb217c9
ENH enable custom reduction callbacks in _pickle
pierreglaser 7c89f8e
TST add a test for custom reduction callbacks
pierreglaser 3ed7293
MNT news entry
pierreglaser b04ca7d
TST enrich the tests
pierreglaser d0ebc9b
CLN rename global_hook to reducer_override
pierreglaser 70798ba
CLN NotImplementedError -> NotImplemented
pierreglaser 3f84541
FIX decref NotImplemented
pierreglaser 98e98be
FIX make reducer_override have (obj) signature
pierreglaser 17b020c
TST remove some redundancy in tests
pierreglaser ad9b0e5
ENH reducer_override should now be a method
pierreglaser 49b5c15
CLN typo
pierreglaser fa71b80
ENH add reducer_override semantics on pickle.py
pierreglaser 2e92068
Update Modules/_pickle.c
ZackerySpytz c22d6df
CLN style
pierreglaser b264222
ensure high-level errors for invalid reduce_values
pierreglaser 91a9042
DOC
pierreglaser c48192b
DOC style and phrasing
pierreglaser 229b81c
reference reducer_override in Pickler class doc
pierreglaser ea11b2e
CLN style
pierreglaser 34bb286
CLN use proper rst directive
pierreglaser 1120c10
CLN period
pierreglaser dc8f276
CLN style
pierreglaser 7df2751
DOC more rst references
pierreglaser 2de069e
CLN style
pierreglaser e6a6b49
- Fix reference leaks
pitrou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2019-03-22-22-40-00.bpo-35900.oiee0o.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
enable custom reduction callback registration for functions and classes in | ||
_pickle.c, using the new Pickler's attribute ``reducer_override`` |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.