You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support copy.replace() for decimal.Context #155041
There is no easy way to get a copy of a decimal.Context with some fields changed: Context.copy() takes no arguments, and the Context constructor takes unspecified fields from DefaultContext, not from an existing context.
I propose to support copy.replace():
ctx=copy.replace(decimal.getcontext(), prec=50)
Fields which are not specified keep the values they have in the original context. As in the constructor, flags and traps can be specified as a list of signals.
Activity
gh-155041: Support copy.replace() for decimal.Context (GH-155047)
pythongh-155041: Support copy.replace() for decimal.Context (pythonGH…