summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <git@danielkrenn.at>2016-02-16 09:23:55 +0100
committerDaniel Krenn <git@danielkrenn.at>2016-02-16 09:23:55 +0100
commitc37497f678252600aa20e54abaf5d5f33113a32e (patch)
tree52fdfa7a90e7d0792360cc1d950a23494752389e
parentTrac #10519: fix sorting of variables (make it platform independent) (diff)
Trac #10519: more fixes to make platform-independent
-rw-r--r--src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
index 0166b7b..afbc7d3 100644
--- a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
@@ -4369,19 +4369,15 @@ def coerce_point(R, p):
sage: FFPD = FractionWithFactoredDenominatorRing(R)
sage: f = FFPD()
sage: p = {SR(x): 1, SR(y): 7/8}
- sage: p
- {y: 7/8, x: 1}
sage: for k in sorted(p.keys(), key=str):
- ....: print k, k.parent()
- x Symbolic Ring
- y Symbolic Ring
+ ....: print k, k.parent(), p[k]
+ x Symbolic Ring 1
+ y Symbolic Ring 7/8
sage: q = coerce_point(R, p)
- sage: q
- {y: 7/8, x: 1}
- sage: for k in sorted(q.keys()):
- ....: print k, k.parent()
- y Multivariate Polynomial Ring in x, y over Rational Field
- x Multivariate Polynomial Ring in x, y over Rational Field
+ sage: for k in sorted(q.keys(), key=str):
+ ....: print k, k.parent(), q[k]
+ x Multivariate Polynomial Ring in x, y over Rational Field 1
+ y Multivariate Polynomial Ring in x, y over Rational Field 7/8
"""
if p is not None and p.keys() and p.keys()[0].parent() != R:
try: