#11350: Fraction fields should know whether they are finite or not.
-------------------------------+--------------------------------------------
Reporter: SimonKing | Owner: AlexGhitza
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.7.1
Component: algebra | Keywords: fraction field, is_finite
Work_issues: | Upstream: N/A
Reviewer: Robert Bradshaw | Author: Simon King
Merged: | Dependencies:
-------------------------------+--------------------------------------------
Comment(by SimonKing):
I just noticed that there is a typo in `_list_from_iterator_cached`: It
says
{{{
try:
if not self.is_finite():
raise ValueError('since it is infinite, cannot list %s' %
self )
except AttributeError, NotImplementedError:
pass
}}}
but should of course say
{{{
try:
if not self.is_finite():
raise ValueError('since it is infinite, cannot list %s' %
self )
except (AttributeError, NotImplementedError):
pass
}}}
But even if I change this, I have a hard time coming up with an example
that illustrates `X.list()` running forever.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11350#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 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.