Ticket #4948: trac-4948-mathematica_lists 12660.patch

File trac-4948-mathematica_lists 12660.patch, 820 bytes (added by flawrence, 10 years ago)

a further patch adding doctest for generic _exponent_symbol()

  • sage/interfaces/expect.py

    # HG changeset patch
    # User Felix Lawrence <felix@physics.usyd.edu.au>
    # Date 1253153066 -36000
    # Node ID a2b2aa88b378fb689edc59092c0e7266035f267c
    # Parent  dc4f1f143c24315eed97c64eadf3e7fba0aee061
    Added doctest for generic _exponent_symbol() method.
    
    diff -r dc4f1f143c24 -r a2b2aa88b378 sage/interfaces/expect.py
    a b  
    11421142    def _exponent_symbol(self):
    11431143        """
    11441144        Return the symbol used to denote *10^ in floats, e.g 'e' in 1.5e6
     1145       
     1146        EXAMPLES::
     1147           
     1148            sage: from sage.interfaces.expect import Expect
     1149            sage: Expect('nonexistent_interface', 'fake')._exponent_symbol()
     1150            'e'
    11451151        """
    11461152        return 'e'
    11471153