Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium

New issue 2616 by asmeurer: Ternary pow()
http://code.google.com/p/sympy/issues/detail?id=2616

According to http://docs.python.org/release/2.5.2/ref/numeric-types.html, __pow__ should define a third, optional argument to work with ternary pow(). We should do that for at least Integer, though it would be cool to do it for arbitrary expressions (this will require Mod from issue 2490, and also some care to make sure that it still evaluates efficiently when values are substituted in). Right now, we get:

In [1]: pow(S(2), S(3), S(5))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in <module>()

TypeError: __sympifyit_wrapper() takes exactly 2 arguments (3 given)


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