Hi Burcin!

On 25 Okt., 14:39, Burcin Erocal <bur...@erocal.org> 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 sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to