Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #22398: simplify id(...) = id(...) in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Feb 21, 2017
1 parent 4a31db6 commit 1f2d7f4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/rings/polynomial/laurent_polynomial.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1550,13 +1550,11 @@ cdef class LaurentPolynomial_mpair(LaurentPolynomial_generic):
sage: v = D[k]
sage: type(k), type(v)
(<type 'tuple'>, <type 'sage.rings.integer.Integer'>)
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):
Expand Down

0 comments on commit 1f2d7f4

Please sign in to comment.