#12969: Coercion failures in symmetric functions
-------------------------------------------------+--------------------------
Reporter: aschilling | Owner: sage-combinat
Type: defect | Status: new
Priority: major | Milestone: sage-5.3
Component: combinatorics | Resolution:
Keywords: symmetric functions, coercion | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------+--------------------------
Comment (by SimonKing):
Adding
{{{
def _coerce_map_from_(self,S):
if not hasattr(self,'_s'):
return None
try:
S_to_s = self._s.coerce_map_from(S)
except:
return None
if S_to_s is None:
return None
return self.coerce_map_from(self._s)*S_to_s
}}}
to `MacdonaldPolynomials_generic` solves the problem. But I first have to
check whether the original coercion from P to Ht (which exists if one does
''not'' do `m(P.one())`) is the same.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12969#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.