Comment #1 on issue 2307 by smi...@gmail.com: Duplicate methods: as_coeff_mul and as_coeff_Mul
http://code.google.com/p/sympy/issues/detail?id=2307

They both do necessary things. If you merge the mul version into Mul then to get the args back you have to do

    c, m = e.as_coeff_Mul()
    mterms = Mul.as_terms(m)

and if Mul is merged into mul then to get a Mul from the args you have to do

    c, mterms = e.as_coeff_mul()
    m = object.__new__(Mul)._new_rawargs(*mterms)

I like the former better. A review of usage should be made to determine whether the two should be merged or if the new as_coeff_Mul should be renamed.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to