-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Make matroid copy
and deepcopy
simply return self
#37670
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
TODO: add FlatsMatroid copy tests in matroid.pyx after sagemath#37670
merge conflict |
I just tried and it got merged cleanly. |
This "merge conflict" message means that there was a conflict when Volker tried to merge it into his integration branch. |
There is a conflict with #37667; if you want, you can merge it here to resolve the conflict. |
Got it. Thanks! |
Best to add |
Documentation preview for this PR (built with commit 1d1825f; changes) is ready! 🎉 |
I abstracted all
copy
/deepcopy
subclass implementations to a generic one in the main matroid class (inmatroid.pyx
).I am unsure as to whether something of value is lost with this change (e.g. relating to the manual
memo
passing indeepcopy
).This follows a recommendation by @mkoeppe made in #37340 (comment).
⌛ Dependencies