Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
skirpichev and picnixz authored Jan 24, 2025
commit 042d643d5eb9cbe9d6b9957870b63559538f90d1
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.