Skip to content

[3.14] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836)#140105

Merged
vstinner merged 2 commits intopython:3.14from
skirpichev:backport-6ecf77d-3.14
Oct 14, 2025
Merged

[3.14] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836)#140105
vstinner merged 2 commits intopython:3.14from
skirpichev:backport-6ecf77d-3.14

Conversation

@skirpichev
Copy link
Member

@skirpichev skirpichev commented Oct 14, 2025

Sync C/Python implementation of the decimal: logical_ops for contexts. (cherry picked from commit 6ecf77d)

…gical operations (pythonGH-102836)

Sync C/Python implementation of the decimal: logical_ops for contexts.
(cherry picked from commit 6ecf77d)

Co-authored-by: Sergey B Kirpichev <[email protected]>
@vstinner
Copy link
Member

There are multiple errors on CI, example:

File "D:\a\cpython\cpython\Lib\decimal.py", line ?, in decimal.Context.logical_xor
Failed example:
    ExtendedContext.logical_xor(110, Decimal(1101)
Exception raised:
      File "<doctest decimal.Context.logical_xor[8]>", line 1
        ExtendedContext.logical_xor(110, Decimal(1101)
                                   ^
    SyntaxError: '(' was never closed

@skirpichev
Copy link
Member Author

Yes, sorry. Miss parenthesis in my editor command.

@vstinner vstinner merged commit 1c55b91 into python:3.14 Oct 14, 2025
46 checks passed
@skirpichev skirpichev deleted the backport-6ecf77d-3.14 branch October 14, 2025 13:51
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