cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-120950: Fix overflow in math.log() with large int-like argument

Open serhiy-storchaka opened this issue 1 year ago • 1 comments

Handling of arbitrary large int-like argument is now consistent with handling arbitrary large int arguments.

  • Issue: gh-120950

serhiy-storchaka avatar Jun 25 '24 18:06 serhiy-storchaka

This is not optimal, because for large int-like argument __index__ is called twice and OverflowError is raised and silenced twice.

serhiy-storchaka avatar Jun 25 '24 18:06 serhiy-storchaka