cpython
cpython copied to clipboard
gh-120950: Fix overflow in math.log() with large int-like argument
Handling of arbitrary large int-like argument is now consistent with handling arbitrary large int arguments.
- Issue: gh-120950
This is not optimal, because for large int-like argument __index__ is called twice and OverflowError is raised and silenced twice.