Ticket #13904: trac_13904_fix_del.patch

File trac_13904_fix_del.patch, 632 bytes (added by SimonKing, 8 years ago)

Attempt to fix TripleDict.__delitem__

  • sage/structure/coerce_dict.pyx

    # HG changeset patch
    # User Simon King <simon.king@uni-jena.de>
    # Date 1357237247 -3600
    # Node ID 2576e79b7276dfa28a5b99273382fd4892c80820
    # Parent  f7bd6f253b1732c74878a1c22c534c5ef2a2f87b
    imported patch Fix715.patch
    
    diff --git a/sage/structure/coerce_dict.pyx b/sage/structure/coerce_dict.pyx
    a b  
    131131                self.D._size -= 1
    132132                break
    133133        try:
    134             self.D._refcache.__delitem__((k1,k2,k3))
     134            del self.D._refcache[k1,k2,k3]
    135135        except KeyError:
    136136            pass
    137137        if not is_enabled: