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

Well, that was pretty obvious, wasn't it. I guess I just wasn't thinking very straight yesterday.

Actually, since you can only have one Number coefficient (right?), I think it's even more efficient to just do

args = Mul.make_args(eq)
if args[0].is_Number:
    return args[0], Mul(*args[1:])
else:
    return S.One, eq

--
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