Skip to content

Commit 042d643

Browse files
skirpichevpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 7a34bb2 commit 042d643

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/_pydecimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def IEEEContext(bits, /):
439439
ctx.Emin = 1 - ctx.Emax
440440
ctx.rounding = ROUND_HALF_EVEN
441441
ctx.clamp = 1
442-
ctx.traps = {s: False for s in _signals}
442+
ctx.traps = dict.fromkeys(_signals, False)
443443

444444
return ctx
445445

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Expose function :func:`decimal.IEEEContext` to support creation of
2-
contexts, corresponding to the IEEE 754 (2008) decimal interchange formats.
1+
Expose :func:`decimal.IEEEContext` to support creation of contexts
2+
corresponding to the IEEE 754 (2008) decimal interchange formats.
33
Patch by Sergey B Kirpichev.

0 commit comments

Comments
 (0)