#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 kini):
Thank you, David! I agree with you, that would be great. Unfortunately it
is not supported by Python. The documentation you linked about the `raise`
statement is unfortunately not so helpful - there must be between 1 and 3
arguments, and they have special meanings. Actually, the multiple-argument
syntax for `raise` is there in order to provide backwards compatibility
with old versions of Python in which Exceptions were not objects with
constructors. Now we would do something like
{{{raise HALError("I can't let you do that, Dave")}}}
but before you would write
{{{raise HALError, "I can't let you do that, Dave"}}}
because the `HALError(foo)` syntax didn't exist. So the multiple arguments
basically allows you to still use the old syntax. Unfortunately this
doesn't mean that we can just raise multiple exceptions...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11942#comment:17>
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.