Updates:
Labels: EasyToFix Milestone-Release0.7.0
Comment #5 on issue 1864 by ronan.l...@gmail.com: AttributeError:
is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1
http://code.google.com/p/sympy/issues/detail?id=1864
From issue 1907:
The exception seen comes more precisely from:
In [4]: Pow(y, 2, evaluate=False).is_commutative
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/media/sda2/Boulot/Projets/sympy-git/<ipython console> in <module>()
AttributeError: is_commutative
The problem is in Pow.__new__: is_commutative is not defined in the
evaluate=False
branch.
The fix is actually simple: make sure that is_commutative is properly
defined when
evaluate=False. This would be best accomplished by refactoring Pow.__new__
so that
there's a single exit point that actually constructs a Pow instance.
--
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.