gh-155052: Fix docstring of decimal.Context.copy - #155062
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
2084196 to
468472e
Compare
|
Thanks @BHUVANSH855 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to |
|
@serhiy-storchaka |
|
It would be nice. |
ok I am working on backporting this, and soon submit backport PRs. |
|
GH-155081 is a backport of this pull request to the 3.15 branch. |
|
GH-155082 is a backport of this pull request to the 3.14 branch. |
|
GH-155083 is a backport of this pull request to the 3.14 branch. |
Summary
Update the Argument Clinic docstring for
decimal.Context.copy()to match its actual behavior and the existing library documentation.The previous docstring incorrectly stated that flags are cleared, while
Context.copy()preserves them. Since__copy__()and__reduce__()share the same Argument Clinic input, their docstrings are updated as well.Closes issue gh-155052