1 | | True. Is that case common enough to merit a special case? Are there cases of ideals of rings over these types of p-adics whose ideal would be generated by more than one polynomials? |

| 1 | True. Is that case common enough to merit a special case? Are there cases of ideals of rings over these types of p-adics whose ideal would be generated by more than one polynomials (and hence would still crash on the existing code)? |

| 2 | |

| 3 | What I'm saying is just, why not: |

| 4 | |

| 5 | {{{ |

| 6 | #!python |

| 7 | try: |

| 8 | same_gens = set(self.gens()) == set(other.gens()) |

| 9 | except TypeError: |

| 10 | same_gens = False |

| 11 | |

| 12 | if same_gens: |

| 13 | # Do whatever we do currently |

| 14 | else: |

| 15 | # Do whatever is necessary to compare the gens (construct a GB, etc). |

| 16 | }}} |