Opened 3 years ago

Last modified 3 years ago

#25979 closed defect

py3: pynac bug with logb on int — at Initial Version

Reported by: embray Owned by:
Priority: major Milestone: sage-8.7
Component: python3 Keywords:
Cc: rws Merged in:
Authors: Reviewers:
Report Upstream: Completely fixed; Fix reported upstream Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

On Python 2:

sage: from sage.functions.log import logb
sage: logb(7, 2)
log(7)/log2
sage: logb(int(7), 2)
log(7)/log(2)

On Python 3:

sage: from sage.functions.log import logb
sage: logb(7, 2)
log(7)/log(2)
sage: logb(int(7), 2)
1

This was causing quite a few confusing bugs before I realized the subtle difference of Integer vs int that was causing the bug. I'm not sure if it affect other functions too.

Change History (0)

Note: See TracTickets for help on using tickets.