Ticket #5498: trac_5498.patch

File trac_5498.patch, 774 bytes (added by was, 12 years ago)
  • sage/interfaces/maxima.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1236826840 25200
    # Node ID 01241a5021c9113f01316eb3c2d2a48f4a11aa51
    # Parent  09a04286d37cf94dab260a3a3e3ea7b678312c41
    trac #5498 -- fix weird weird bug in maxima.py and garbage collection (technical 3.4.rc2 issues)
    
    diff -r 09a04286d37c -r 01241a5021c9 sage/interfaces/maxima.py
    a b  
    11151115            'x'
    11161116        """
    11171117        try:
    1118             self._eval_line('kill(%s)$'%var, reformat=False)
    1119         except TypeError:
     1118            self._expect.send('kill(%s)$'%var)
     1119        except (TypeError, AttributeError):
    11201120            pass
    11211121       
    11221122    def console(self):