Ticket #12719: trac_12719-gcd-repr.patch

File trac_12719-gcd-repr.patch, 719 bytes (added by jhpalmieri, 9 years ago)
  • sage/interfaces/sage0.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1351899816 25200
    # Node ID 70519fc74255ecbee358f62413ce3209c0770546
    # Parent  44889dd4de2f28ed02da54b614491e0f475b4a06
    New IPython: fix print repr doctest for Cython methods.
    
    diff --git a/sage/interfaces/sage0.py b/sage/interfaces/sage0.py
    a b class SageFunction(FunctionElement): 
    487487        EXAMPLES::
    488488       
    489489            sage: sage0(4).gcd
    490             <built-in method gcd of sage.rings.integer.Integer object at 0x...>
     490            <function gcd>
    491491        """
    492492       
    493493        return str(self._obj.parent().eval('%s.%s'%(self._obj._name, self._name)))