#15681: Name of immutable graphs
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.1
defect | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | 46cfc90f24aacec0d39f5828709117683ea61b06
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/15681 |
Dependencies: |
#15623 |
-------------------------+-------------------------------------------------
Comment (by tscrim):
Something like
{{{
sage: P = graphs.PetersenGraph()
sage: G = P.copy(immutable=True)
sage: G.name("blah")
---------------------------------------------------------------------------
Traceback (most recent call last):
...
NotImplementedError: An immutable graph does not change name
}}}
Although I think a `TypeError` is a better error message because IMO
`NotImplementedError` are for things which have not been implemented yet.
Yet this is only my opinion and I won't hold this ticket up because of
that.
--
Ticket URL: <http://trac.sagemath.org/ticket/15681#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.