Skip to content

gh-140036: Test modulo and divmod of pure Python Decimal in unbounded contexts - #160482

Open
picnixz wants to merge 1 commit into
python:mainfrom
picnixz:meta/decimal/py/test-mod-divmod-unbound-140036
Open

picnixz wants to merge 1 commit into
python:mainfrom
picnixz:meta/decimal/py/test-mod-divmod-unbound-140036

Conversation

@picnixz

@picnixz picnixz commented Oct 23, 2026

Copy link
Copy Markdown
Member

Add tests for x % 1 and divmod(x, 1) in an unbounded context, next to the existing x // 1 test from gh-140044. Both operations go through Decimal._divide, which gh-140044 fixed.

…ounded contexts

Check that `%` and `divmod()` stay fast when the context precision is
`MAX_PREC`, as `//` already is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant