Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Defect Priority-Medium Polynomial
New issue 2504 by [email protected]: FF(q) is constructor should not
raise error when passed when of its owen elements
http://code.google.com/p/sympy/issues/detail?id=2504
In [35]: GF = FF(2)
In [36]: a = GF(2)
In [37]: a
Out[37]: 0 mod 2
In [38]: GF(a)
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (4, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (8, 0))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/sherjilozair/sympy/<ipython console> in <module>()
/Users/sherjilozair/sympy/sympy/polys/domains/domain.pyc in __call__(self,
*args)
62 def __call__(self, *args):
63 """Construct an element of `self` domain from `args`. """
---> 64 return self.dtype(*args)
65
66 def normal(self, *args):
/Users/sherjilozair/sympy/sympy/polys/domains/modularinteger.pyc in
__init__(self, val)
9
10 def __init__(self, val):
---> 11 self.val = val % self.mod
12
13 def __hash__(self):
/Users/sherjilozair/sympy/sympy/polys/domains/modularinteger.pyc in
__mod__(self, other)
53
54 def __mod__(self, other):
---> 55 return self.__class__(self.val % other.val)
56
57 def __pow__(self, exp):
AttributeError: 'mpz' object has no attribute 'val'
GF(a) should just return a, if a is an element of GF.
--
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.