Changes between Initial Version and Version 1 of Ticket #25946, comment 31


Ignore:
Timestamp:
08/14/18 13:49:36 (4 years ago)
Author:
embray
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25946, comment 31

    initial v1  
    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?
     1True.  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
     3What I'm saying is just, why not:
     4
     5{{{
     6#!python
     7try:
     8    same_gens = set(self.gens()) == set(other.gens())
     9except TypeError:
     10    same_gens = False
     11
     12if same_gens:
     13    # Do whatever we do currently
     14else:
     15    # Do whatever is necessary to compare the gens (construct a GB, etc).
     16}}}