Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2613 by [email protected]: divmod does not work with sympy
integers
http://code.google.com/p/sympy/issues/detail?id=2613
Standard python function divmod behaves strange when used with sympy
integers. With sympy 0.7.0 the following
one=sympy.Integer(1)
divmod(one,10)
Gives an error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\sympy\core\numbers.py", line 1013, in
__divmod__
return divmod(self.p, other.p)
AttributeError: 'int' object has no attribute 'p'
while
divmod(int(one),10)
works as expected.
Which seems to be unnatural.
--
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.