(f, rep, dom=None, kill=False, ring=None)
return DMP(rep, dom, lev, ring)
Create a DMP out of the given representation.
Create a DMP out of the given representation.
Create a DMP out of the given representation .
def per(f, rep, dom=None, kill=False, ring=None):
        """Create a DMP out of the given representation. """
        lev = f.lev

        if kill:
            if not lev:
                return rep
            else:
                lev -= 1

        if dom is None:
            dom = f.dom

        if ring is None:
            ring = f.ring

        return DMP(rep, dom, lev, ring)
def per ( f , rep , dom = None , kill = False , ring = None ) : lev = f . lev if kill : if not lev : return rep else : lev -= 1 if dom is None : dom = f . dom if ring is None : ring = f . ring return DMP ( rep , dom , lev , ring )