#7510: is_finite method in categories (was Primes is missing is_finite).
--------------------------+-------------------------------------------------
Reporter: hivert | Owner: hivert
Type: defect | Status: new
Priority: major | Milestone: sage-4.3
Component: categories | Keywords: Primes, is_finite
Work_issues: | Author: Florent Hivert
Reviewer: | Merged:
--------------------------+-------------------------------------------------
Changes (by hivert):
* component: number theory => categories
Old description:
> Primes has no methods {{{is_finite}}}. This breaks several thing
> including:
> {{{
> sage: contre_exemples = (p for p in Primes() and not
> is_prime(mersenne(p)))
>
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call
> last)
>
> /home/averell/.sage/temp/tomahawk/25868/_home_averell__sage_init_sage_0.py
> in <module>()
>
> /usr/local/sage/sage-4.2/local/lib/python2.6/site-
> packages/sage/structure/parent.so in
> sage.structure.parent.Set_generic.__nonzero__
> (sage/structure/parent.c:14641)()
>
> AttributeError: 'Primes_with_category' object has no attribute
> 'is_finite'
> }}}
New description:
I found that Primes has no methods {{{is_finite}}}. This is actually not a
problem of {{{Prime}}} but should be dealt in categories. I put a small
patch here though i'm not sure we want to do this. Isn't this redundent
with categories ?
Cheers,
Florent
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7510#comment:2>
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=.