#6468: [with patch; needs work] FiniteField_prime_modn.__call__ should raise an
error, rather than return an error
------------------------------+---------------------------------------------
Reporter: SimonKing | Owner: SimonKing
Type: defect | Status: assigned
Priority: major | Milestone: sage-4.1.1
Component: basic arithmetic | Keywords: Finite field, call
Reviewer: | Author: Simon King
Merged: |
------------------------------+---------------------------------------------
Comment(by SimonKing):
Gotcha!
The following nasty example triggers the error:
{{{
sage: class foo_parent(Parent):
....: pass
....:
sage: class foo(RingElement):
....: def lift(self):
....: raise PariError
....:
sage: P = foo_parent()
sage: F = foo(P)
sage: GF(2)(F)
(<type 'exceptions.TypeError'>, 'error coercing to finite field')
}}}
I will produce a patch, adding doc tests to the call method (it is
currently lacking any doc tests!), and also adding the nasty example with
reference to this ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6468#comment:4>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---