Skip to content

Fix three-arg pow() not dispatching on the modulus type#2829

Merged
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:fix-pow-modulus-dispatch
Jun 28, 2026
Merged

Fix three-arg pow() not dispatching on the modulus type#2829
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:fix-pow-modulus-dispatch

Conversation

@fgallaire

Copy link
Copy Markdown
Contributor
>>> from decimal import Decimal
>>> pow(10, 2, Decimal(7))
TypeError: pow() 3rd argument not allowed unless all arguments are integers  # before
>>> pow(10, 2, Decimal(7))
Decimal('2')                                                                 # after

@PierreQuentel PierreQuentel merged commit 02fa783 into brython-dev:master Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants