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

Commit

Permalink
explicitly forbid coercion from MutablePoset into the AsymptoticRing
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl committed Sep 22, 2015
1 parent 572a95d commit 5f54aec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,9 @@ def _coerce_map_from_(self, R):
sage: AR_QQ.has_coerce_map_from(ZZ)
True
"""
from sage.data_structures.mutable_poset import MutablePoset
if R == MutablePoset:
return
if self.coefficient_ring.has_coerce_map_from(R):
return True
elif isinstance(R, AsymptoticRing):
Expand Down

0 comments on commit 5f54aec

Please sign in to comment.