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
Context.copy() copies the flags, but its docstring says otherwise:
>>> import decimal
>>> decimal.Context.copy.__doc__
'Return a duplicate of the context with all flags cleared.'
>>> c = decimal.Context()
>>> c.flags[decimal.Inexact] =True
>>> c.copy().flags[decimal.Inexact]
True
The documentation in Doc/library/decimal.rst is correct ("Return a duplicate of the context"); only the docstring is wrong.
Context.copy()copies the flags, but its docstring says otherwise:The documentation in
Doc/library/decimal.rstis correct ("Return a duplicate of the context"); only the docstring is wrong.Linked PRs