Hi Burcin!
On 25 Okt., 14:39, Burcin Erocal <[email protected]> wrote:
> If we return an identity operator for these cases, how do you plan to
> test for it in your code:
Something like this:
L = x.operands()
if len(L)>1:
return x.operator()(*map(lambda ..., L))
else:
try:
return x.operator()(round(L[0],...))
except TypeError:
return x
Cheers,
Simon
--
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/sage-support
URL: http://www.sagemath.org