From 1f2d7f442d649b13d44d013a37348fa194672641 Mon Sep 17 00:00:00 2001 From: Daniel Krenn Date: Tue, 21 Feb 2017 15:07:38 +0100 Subject: [PATCH] Trac #22398: simplify id(...) = id(...) in doctest --- src/sage/rings/polynomial/laurent_polynomial.pyx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sage/rings/polynomial/laurent_polynomial.pyx b/src/sage/rings/polynomial/laurent_polynomial.pyx index cd6507991f7..6cc680e64bd 100644 --- a/src/sage/rings/polynomial/laurent_polynomial.pyx +++ b/src/sage/rings/polynomial/laurent_polynomial.pyx @@ -1550,13 +1550,11 @@ cdef class LaurentPolynomial_mpair(LaurentPolynomial_generic): sage: v = D[k] sage: type(k), type(v) (, ) - sage: id_k = id(k) - sage: id_v = id(v) sage: LQ(D) x^-1*y - sage: id(tuple(D)[0]) == id_k + sage: tuple(D)[0] is k True - sage: id(D[k]) == id_v + sage: D[k] is v True """ if isinstance(x, PolyDict):