Dear Robert,

simply for testing, i raise an error as soon as the init-method of my
class is called. So, for the moment the code looks like this:
class COHO:
    """
    Docstring
    """
    def __init__(self, *args, **kwds):
        raise ValueError, "fooBAR..."
        # followed by a lots of more code


And now the reason why i am puzzled.
If i write a .pyx file with the above content, then everything is fine
(i.e., an error is raised, but no crash occurs). But with my module
(although the relevant (?) part of it has exactly the above form), it
fails:
sage: from cohomology import *
sage: H=COHO()
/home/king/SAGE/devel/sage-3.1.1/local/bin/sage-sage: line 216: 27343
Speicherzugriffsfehler  sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"

Note that my class also has a __del__ method.
Could that be the reason for the "Speicherzugriffsfehler" (what is it
in english?)?
I mean, would __del__ be called if __init__ fails?

Cheers
     Simon

--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to