Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-93627: Align copy module behaviour with pickle module#109498
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
eendebakpt wants to merge18 commits intopython:mainChoose a base branch fromeendebakpt:pickle_copy
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+46 −16
Open
Changes fromall commits
Commits
Show all changes
18 commits Select commitHold shift + click to select a range
1535893
Align copy module behaviour with pickle module
eendebakpt30d6b97
📜🤖 Added by blurb_it.
blurb-it[bot]c97105f
align behaviour of __replace__
eendebakpt7da7086
Merge branch 'pickle_copy' of github.com:eendebakpt/cpython into pick…
eendebakpte54350f
Merge branch 'main' into pickle_copy
eendebakpt368f99e
Merge branch 'main' into pickle_copy
eendebakpt6d31123
Merge branch 'main' into pickle_copy
eendebakpt35046a4
Merge branch 'main' into pickle_copy
eendebakpt817077f
Merge branch 'main' into pickle_copy
eendebakpt2396484
Merge branch 'main' into pickle_copy
eendebakpt0b26813
Merge branch 'main' into pickle_copy
eendebakpt3aeb310
Merge branch 'main' into pickle_copy
eendebakpta924c78
Merge branch 'main' into pickle_copy
eendebakpt7b6b57a
Merge branch 'main' into pickle_copy
skirpichevf481db6
Merge branch 'main' into pickle_copy
eendebakptd451ba4
lint
eendebakpt5148248
Merge branch 'main' into pickle_copy
eendebakptff7f162
Merge branch 'main' into pickle_copy
eendebakptFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
34 changes: 18 additions & 16 deletionsLib/copy.py
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
27 changes: 27 additions & 0 deletionsLib/test/test_copy.py
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
1 change: 1 addition & 0 deletionsMisc/NEWS.d/next/Core_and_Builtins/2023-09-16-19-19-47.gh-issue-93627.fkb529.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 @@ | ||
Update the Python copy module implementation to match the implementation of the pickle module. For objects setting reduction methods like :meth:`~object.__copy__` , :meth:`~object.__reduce_ex__` or :meth:`~object.__reduce__` to ``None``, a call to :meth:`copy.copy` or :meth:`copy.deepcopy` will result in a :exc:`TypeError`. |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.