Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium Assumptions EasyToFix

New issue 2446 by [email protected]: as_dummy fails when symbol assumptions are set
http://code.google.com/p/sympy/issues/detail?id=2446

x = Symbol('x', real=True)
x.as_dummy()
     71     def as_dummy(self):
---> 72 return Dummy(self.name, self.is_commutative, **self.assumptions0)

TypeError: __new__() got multiple values for keyword argument 'commutative'

This happens because the signature of Dummy.__new__ is

  def __new__(cls, name=None, commutative=True, **assumptions)

so if assumptions['commutative'] is already set, the error is triggered.

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

Reply via email to