I have played around following Florent's comment and the following
seems to work
(while at the same time displaying my ignorance)

class G:
    blah = 0

f =G()
g=G()

p=parent(f)

M=CombinatorialFreeModule(QQ,p)

a=M.monomial(f)
b=M.monomial(g)

(2/3)*a+(4/5)*b

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to