The code uses explicit isinstance(.., int) checks, which is rather bad 
style. If you don't want to change that then you'll have to pass in a 
Python int:  BalancedTernary(int(10))


On Sunday, January 3, 2016 at 10:01:15 AM UTC+1, HG wrote:
>
> Hi,
> I got this balanced ternary file from rosetta, it works fine in python2 
> but not completly in sage : b variable which convert number in ternary is 
> failing, a problem of conversion but I don't know how to correct it ?
> Any help ?
> Thanks
> Kind regards
> Henri
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to