Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bénédikt Tran <[email protected]>
  • Loading branch information
skirpichev and picnixz authored Jan 24, 2025
1 parent 7a34bb2 commit 042d643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lib/_pydecimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def IEEEContext(bits, /):
ctx.Emin = 1 - ctx.Emax
ctx.rounding = ROUND_HALF_EVEN
ctx.clamp = 1
ctx.traps = {s: False for s in _signals}
ctx.traps = dict.fromkeys(_signals, False)

return ctx

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Expose function :func:`decimal.IEEEContext` to support creation of
contexts, corresponding to the IEEE 754 (2008) decimal interchange formats.
Expose :func:`decimal.IEEEContext` to support creation of contexts
corresponding to the IEEE 754 (2008) decimal interchange formats.
Patch by Sergey B Kirpichev.

0 comments on commit 042d643

Please sign in to comment.