Ticket #6883: trac_6883-proper-display.patch

File trac_6883-proper-display.patch, 679 bytes (added by Minh Van Nguyen, 13 years ago)

based on Sage 4.1.2.alpha1

  • sage/interfaces/maxima.py

    # HG changeset patch
    # User Minh Van Nguyen <nguyenminh2@gmail.com>
    # Date 1253066485 25200
    # Node ID 230247b3177219b735255080c7c85219592d7284
    # Parent  76f8dec0779bc99474ecaffb9d30317dc1d8372a
    trac 6883: properly display MaximaElement objects
    
    diff -r 76f8dec0779b -r 230247b31772 sage/interfaces/maxima.py
    a b  
    21052105        EXAMPLE::
    21062106       
    21072107            sage: v = maxima('create_list(i*x^i,i,0,5)')
    2108             sage: list(v)
     2108            sage: L = list(v)
     2109            sage: [e._sage_() for e in L]
    21092110            [0, x, 2*x^2, 3*x^3, 4*x^4, 5*x^5]
    21102111        """
    21112112        for i in range(len(self)):