#6522: replace .copy() with .__copy__() in graphs/graph.py
----------------------------+-----------------------------------------------
Reporter: AlexGhitza | Owner: was
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-4.3.1
Component: graph theory | Keywords:
Work_issues: | Author: Karl-Dieter Crisman
Upstream: N/A | Reviewer:
Merged: |
----------------------------+-----------------------------------------------
Changes (by kcrisman):
* status: needs_work => needs_review
Comment:
Okay, here is how I dealt with these issues.
1. We can't use the generic deprecation thing from #7515 here, because it
would say to use copy instead of copy! Unfortunately. On the plus side,
that's one less for #7559.
2. I have not deprecated copy() from the generic graph class, only the
yang-baxter one. There is now a __copy__ for generic graphs. In order to
deal with a tricky thing on Dynkin diagrams, I had to define a __copy__
method for them, which however is EXACTLY the same as the generic Python
copy from the copy module.
I really, really worked hard to make sure I caught every possible place
where this causes problems, and it passes all doctests, but please think
hard where it would make a difference. I also hope I won't have to rebase
it again :)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6522#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.