Ticket #9958: trac_9958-mixedfix.patch

File trac_9958-mixedfix.patch, 2.1 KB (added by fbissey, 10 years ago)

odds and ends missed in the other patches

  • sage/misc/lazy_import.pyx

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1303958403 -43200
    # Node ID fe473e0c06b8ca2a0b592665f7ca04be9c81922a
    # Parent  57b3ef5598f1e89a7b396fe97befa20dd5891229
    #9958 various mixed fix
    
    diff --git a/sage/misc/lazy_import.pyx b/sage/misc/lazy_import.pyx
    a b  
    351351            sage: type(version_info)
    352352            <type 'sage.misc.lazy_import.LazyImport'>
    353353            sage: iter(version_info)
    354             <tupleiterator object at ...>
     354            <iterator object at ...>
    355355        """
    356356        return iter(self._get_object())
    357357   
  • sage/rings/polynomial/polynomial_rational_flint.pyx

    diff --git a/sage/rings/polynomial/polynomial_rational_flint.pyx b/sage/rings/polynomial/polynomial_rational_flint.pyx
    a b  
    992992            sage: (1 + t)^(2^63)
    993993            Traceback (most recent call last):
    994994            ...
    995             OverflowError: long int too large to convert to int
     995            OverflowError: Python int too large to convert to C long
    996996        """
    997997        cdef long n
    998998        cdef Polynomial_rational_flint res
  • sage/rings/real_mpfr.pyx

    diff --git a/sage/rings/real_mpfr.pyx b/sage/rings/real_mpfr.pyx
    a b  
    24472447        EXAMPLES::
    24482448
    24492449            sage: RR(pi).__float__()     
    2450             3.1415926535897931
     2450            3.141592653589793
    24512451            sage: type(RR(pi).__float__())
    24522452            <type 'float'>
    24532453        """
     
    25112511        EXAMPLES::
    25122512
    25132513            sage: RR(pi).__complex__()   
    2514             (3.1415926535897931+0j)
     2514            (3.141592653589793+0j)
    25152515            sage: type(RR(pi).__complex__())
    25162516            <type 'complex'>
    25172517        """
     
    51555155            sage: f(2^75)
    51565156            Traceback (most recent call last):
    51575157            ...
    5158             OverflowError: long int too large to convert to int
     5158            OverflowError: Python int too large to convert to C long
    51595159       
    51605160        ::
    51615161