It's because Integer(8) has a log method, while int(8) does not.  Line
322-324 of sage/functions/log.py are
try:
    return args[0].log(base)
except (AttributeError, TypeError):
    ....

David

On Fri, Jul 24, 2015 at 2:39 PM, Jeremy Martin
<jeremy.l.mar...@gmail.com> wrote:
> The following looks weird:
>
> sage: log(int(8),2)
> log(8)/log(2)
> sage: log(8,2)
> 3
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

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

Reply via email to