GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-141510: Implement copy and deepcopy for frozendict by eendebakpt · Pull Request #144905 · python/cpython Conversation
|
|
Draft because there are failing tests are due to making cpython/Lib/test/test_descr.py Line 318 in 6ef2578
I will look into this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <[email protected]>
…n into copy_module_frozendict
There was an error while loading. Please reload this page.
Sorry, my mistake. Feel free to close the PR if it is interfering. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return type(x)(x.__func__, deepcopy(x.__self__, memo)) | ||
| d[types.MethodType] = _deepcopy_method | ||
|
|
||
| _deepcopy_dispatch = frozendict(d) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not convert it to a frozendict in this PR, since it's not directly related to supporting frozendict in copy: remove this line and revert test_descr changes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it here. Do you want me to open a separate PR for this part?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I wrote #144909 to use frozendict in multiple stdlib modules. I will to see how this PR goes before proposing changing copy._deepcopy_dispatch to frozendict.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, the implementation doesn't work for recursive frozendict. I created #145027 to fix |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…44905) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Victor Stinner <[email protected]>
…44905) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Victor Stinner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.