#7510: Primes is missing is_finite.
-----------------------------+----------------------------------------------
   Reporter:  hivert         |       Owner:  was              
       Type:  defect         |      Status:  new              
   Priority:  major          |   Milestone:  sage-4.3         
  Component:  number theory  |    Keywords:  Primes, is_finite
Work_issues:                 |      Author:  Florent Hivert   
   Reviewer:                 |      Merged:                   
-----------------------------+----------------------------------------------
 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'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7510>
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=.


Reply via email to