Comment #15 on issue 1798 by ellisonbg.net: Refactoring Basic
http://code.google.com/p/sympy/issues/detail?id=1798
Initially I didn't like this idea of splitting Basic into Basic+Expr, but
after looking more I think it is a good idea.
In addition to removing the circular dependencies, it also clarifies that
Basic doesn't do math, but Expr does.
However, if we take seriously the idea that "Basic doesn't do math" I think
the following methods should be
moved to Expr as well:
__lt__, __gt__, __le__, __ge__ => currently these represent mathematical
inequalities, move to Expr
__eq__, __ne__ => leave in Basic as they represent primitive object
equality NOT math
is_hypergeometric: seems pretty math-ish. Will this go away once the new
assumptions are in place?
has_piecewise: same
as_poly: all the other as_foo methods are in Expr, why not this?
Cheers and great work!
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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.