#11942: segfault on Graph().connected_component_containing_vertex('')
------------------------------------------+---------------------------------
Reporter: kini | Owner: jason, ncohen, rlm
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.8
Component: graph theory | Keywords: segfault cython
Work_issues: | Upstream: N/A
Reviewer: Keshav Kini, David Coudert | Author: Nathann Cohen,
Keshav Kini
Merged: | Dependencies:
------------------------------------------+---------------------------------
Comment(by dcoudert):
Hello,
It would be nice if the KeyError method could take an extra argument to
describe the error. For instance KeyError(key, 'You should add some tests
to your algorithm!').
Unfortunately, I'm not able to find the documentation of the KeyError
function.
However, according to the documentation of Python, the raise method can
handle multiple arguments:
{{{raise_stmt ::= "raise" [expression ["," expression [","
expression]]]}}}
See: http://docs.python.org/reference/simple_stmts.html#raise
It may help satisfying both of you ;-)
Best,
David.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11942#comment:16>
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.