(f, g)
return 1
Compare two labeled polynomials.

    f < g iff
        - Sign(f) < Sign(g)
    or
        - Sign(f) == Sign(g) and Num(f) > Num(g)

    f > g otherwise
Compare two labeled polynomials.
Compare two labeled polynomials .
def lbp_cmp(f, g):
    """
    Compare two labeled polynomials.

    f < g iff
        - Sign(f) < Sign(g)
    or
        - Sign(f) == Sign(g) and Num(f) > Num(g)

    f > g otherwise
    """
    if sig_cmp(Sign(f), Sign(g), Polyn(f).ring.order) == -1:
        return -1
    if Sign(f) == Sign(g):
        if Num(f) > Num(g):
            return -1
        #if Num(f) == Num(g):
        #    return 0
    return 1
def lbp_cmp ( f , g ) : if sig_cmp ( Sign ( f ) , Sign ( g ) , Polyn ( f ) . ring . order ) == - 1 : return - 1 if Sign ( f ) == Sign ( g ) : if Num ( f ) > Num ( g ) : return - 1 #if Num(f) == Num(g): #    return 0 return 1