gh-106602: Add __copy__ and __deepcopy__ in Enum#106666
gh-106602: Add __copy__ and __deepcopy__ in Enum#106666ethanfurman merged 7 commits intopython:mainfrom
Conversation
ethanfurman
left a comment
There was a problem hiding this comment.
Overall, looks good!
A couple minor issues to fix and then we can commit.
Lib/enum.py
Outdated
| # on class lookup; on instance lookup it either executes a provided function | ||
| # or raises an AttributeError. | ||
|
|
||
| def __deepcopy__(self,memo): |
There was a problem hiding this comment.
Please move these two methods above the enum.property comment.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @ethanfurman: please review the changes made to this pull request. |
|
Thanks @Agent-Hellboy for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Thanks @Agent-Hellboy for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
(cherry picked from commit 357e9e9) Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
|
GH-106694 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit 357e9e9) Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
|
GH-106695 is a backport of this pull request to the 3.12 branch. |
Uh oh!
There was an error while loading. Please reload this page.