Ticket #12381: 12381.patch

File 12381.patch, 1.7 KB (added by roed, 8 years ago)
  • sage/combinat/sf/classical.py

    # HG changeset patch
    # User David Roe <roed@math.harvard.edu>
    # Date 1327885766 28800
    # Node ID d2a9cdcc50a1c2f1d9ff2877bab67112013c95c6
    # Parent  565bc6447def921dc0d30ef98f7f6f31b14e7383
    Fixed a typo in the _element_constructor_ for SymmetricFunctionAlgebra elements.
    
    diff --git a/sage/combinat/sf/classical.py b/sage/combinat/sf/classical.py
    a b  
    9393            2*s[]
    9494            sage: s([2,1]) # indirect doctest
    9595            s[2, 1]
     96
     97            sage: McdJ = MacdonaldPolynomialsJ(QQ)
     98            sage: s = SymmetricFunctions(McdJ.base_ring()).s()
     99            sage: s._element_constructor(McdJ(s[2,1]))
     100            s[2, 1]
    96101        """
    97102        R = self.base_ring()
    98103
     
    220225        elif isinstance(x, macdonald.MacdonaldPolynomials_generic.Element):
    221226            if isinstance(x, macdonald.MacdonaldPolynomials_j.Element):
    222227                J = x.parent()
    223                 sx = J._s._from_cache(x, J._s_cache, J._j_to_s_cache, q=J.q, t=J.t)
     228                sx = J._s._from_cache(x, J._s_cache, J._self_to_s_cache, q=J.q, t=J.t)
    224229                return self(sx)
    225230            elif isinstance(x, (macdonald.MacdonaldPolynomials_q.Element, macdonald.MacdonaldPolynomials_p.Element)):
    226231                J = x.parent()._J
    227232                jx = J(x)
    228                 sx = J._s._from_cache(jx, J._s_cache, J._j_to_s_cache, q=J.q, t=J.t)
     233                sx = J._s._from_cache(jx, J._s_cache, J._self_to_s_cache, q=J.q, t=J.t)
    229234                return self(sx)
    230235            elif isinstance(x, (macdonald.MacdonaldPolynomials_h.Element,macdonald.MacdonaldPolynomials_ht.Element)):
    231236                H = x.parent()