Status: NeedsDecision
Owner: ----
CC: [email protected], [email protected]
Labels: Type-Defect Priority-Medium EasyToFix
New issue 3909 by [email protected]: Replace Mul with mul, Add with add,
etc....
http://code.google.com/p/sympy/issues/detail?id=3909
We often use the classes Add, Mul, etc... within code to serve as the
summation or product of expressions. I suggest that we change these
occurrences to new functions, add, mul, etc...
To begin with add will just call Add and mul will just call Mul
This localizes object creation decisions to a single location. We as a
community can then decide what add and mul do and experiment far more
easily.
Before:
from sympy.core import Mul
expr = Mul(*[fn(arg) for arg in expr.args])
After
from sympy.core.operators import mul
expr = mul(*[fn(arg) for arg in expr.args])
Within sympy/core/operators.py
from sympy.core import Mul
def mul(*args, **kwargs):
return Mul(*args, **kwargs)
I've marked this EasyToFix because I think that it does not require in
depth understanding of SymPy. I think it could probably be accomplished
with a moderate use of grep.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.