(self, *gens)
Remove specified generators from this ring.
Remove specified generators from this ring.
Remove specified generators from this ring .
def drop(self, *gens):
        """Remove specified generators from this ring. """
        indices = set(map(self.index, gens))
        symbols = [ s for i, s in enumerate(self.symbols) if i not in indices ]

        if not symbols:
            return self.domain
        else:
            return self.clone(symbols=symbols)
def drop ( self , * gens ) : indices = set ( map ( self . index , gens ) ) symbols = [ s for i , s in enumerate ( self . symbols ) if i not in indices ] if not symbols : return self . domain else : return self . clone ( symbols = symbols )