#19459: Fix containment
-------------------------------------+-------------------------------------
Reporter: switzel | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Stefan Witzel | Reviewers: Peter Bruin
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/switzel/fix_containment | 3aa4bf2781f8ddb4a98316d252d0bc7a695f0c0a
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by pbruin):
Replying to [comment:6 jdemeyer]:
> I'd vote for `TypeError` (as opposed to `ValueError` or
`ArithmeticError`) by analogy with
> {{{
> sage: ZZ(1/2)
> ...
> TypeError: no conversion of this rational to integer
> }}}
This is probably the best solution; it is also consistent with rational
functions.
{{{
sage: R.<x> = QQ[]
sage: 1/(1 + x)
Traceback (most recent call last):
...
TypeError: denominator must be a unit
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19459#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.