Changes between Initial Version and Version 2 of Ticket #7510


Ignore:
Timestamp:
11/21/09 15:44:39 (13 years ago)
Author:
hivert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7510

    • Property Owner changed from was to hivert
    • Property Component changed from number theory to categories
    • Property Summary changed from Primes is missing is_finite. to is_finite method in categories (was Primes is missing is_finite).
  • Ticket #7510 – Description

    initial v2  
    1 Primes has no methods {{{is_finite}}}. This breaks several thing including:
    2 {{{
    3 sage: contre_exemples = (p for p in Primes() and not is_prime(mersenne(p)))
     1I 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 ?
    42
    5 ---------------------------------------------------------------------------
    6 AttributeError                            Traceback (most recent call last)
     3Cheers,
    74
    8 /home/averell/.sage/temp/tomahawk/25868/_home_averell__sage_init_sage_0.py in <module>()
    9 
    10 /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)()
    11 
    12 AttributeError: 'Primes_with_category' object has no attribute 'is_finite'
    13 }}}
     5Florent
     6