Ticket #1440: redef_substi2.patch

File redef_substi2.patch, 777 bytes (added by broune, 14 years ago)

Replacement for previous patch

  • sage/rings/polynomial/polynomial_element.pyx

    # HG changeset patch
    # User Bjarke Hammersholt Roune (www.broune.com)
    # Date 1210774251 -7200
    # Node ID e4d60d3d852a22505fb02f5133b14d0ee6e97ed4
    # Parent  13a377fb7ead03a6a0be6a9f7884446889e7fb8e
    Made Polynomial redefine substitute in addition to subs.
    
    diff -r 13a377fb7ead -r e4d60d3d852a sage/rings/polynomial/polynomial_element.pyx
    a b  
    312312                raise TypeError, "keys do not match self's parent"
    313313            return self
    314314        return self.__call__(*x, **kwds)
    315        
     315    substitute = subs
     316
    316317    def __call__(self, *x, **kwds):
    317318        """
    318319        Evaluate polynomial at x=a.