Hi there,
I suspected that this could be a common mistake. So I did a grep... It seems I
was right...
Florent
tomahawk-*ge-combinat/sage $ grep return.\*Error **/*.py*
categories/enumerated_sets.py: ``EnumeratedSet()`` it returns `NotImplementedError` since one does
geometry/polyhedra.py: return NotImplementedError
groups/perm_gps/permgroup_named.py: return ValueError, "Degree must be 2."
groups/perm_gps/permgroup_named.py: return ValueError, "Degree must be 2."
groups/perm_gps/permgroup.py: return TypeError, "Group must be simple."
interfaces/gap.py: return RuntimeError, "Error evaluating %s in %s"%(line, self)
libs/pari/gen.pyx: return "PariError(%d)"%self.args[0]
misc/latex.py: return "Error"
misc/latex.py: return "Error"
misc/latex.py: return "Error"
misc/latex.py: return "Error"
misc/latex.py: return "Error: dvipng failed."
misc/latex.py: return "Error latexing slide."
misc/typecheck.py:__all__ = ["takes", "InputParameterError", "returns", "ReturnValueError"]
modular/abvar/finite_subgroup.py: return ValueError, "self and other must be in the same ambient Jacobian"
modular/arithgroup/congroup_gammaH.py: return NotImplementedError
modular/hecke/module.py: abstract base class, return NotImplementedError.
rings/finite_field_element.py: return ArithmeticError, "Multiplicative order of 0 not defined."
rings/finite_field_givaro.pyx: return ArithmeticError, "Multiplicative order of 0 not defined."
rings/number_field/number_field.py: If this function returns True (and doesn't raise a ValueError),
rings/ring.pyx: return NotImplementedError
rings/ring.pyx: The following example returns a ``NotImplementedError`` since the
server/notebook/twist.py: return HTMLResponse(stream = 'Error in introspection -- invalid cell id.')
server/notebook/worksheet.py: return "print 'Error loading %s -- file not found'"%filename
server/notebook/worksheet.py: return "print r'''Error compiling cython file:\n%s'''"%msg
structure/element.pyx: return ArithmeticError, "Multiplicative order of 0 not defined."
structure/factorization.py: This method will return a TypeError if the coercion is not
symbolic/expression_conversions.py: return NotImplementedError("SymPy function '%s' doesn't exist" % f)
symbolic/expression.pyx: return NotImplementedError