Skip to content

gh-155052: Fix docstring of decimal.Context.copy - #155062

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
BHUVANSH855:fix-155052-decimal-context-copy-docstring
Aug 2, 2026
Merged

gh-155052: Fix docstring of decimal.Context.copy#155062
serhiy-storchaka merged 2 commits into
python:mainfrom
BHUVANSH855:fix-155052-decimal-context-copy-docstring

Conversation

@BHUVANSH855

@BHUVANSH855 BHUVANSH855 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

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

@johnslavik

This comment was marked as resolved.

@skirpichev skirpichev added needs backport to 3.15 pre-release feature fixes, bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 2, 2026
@skirpichev

Copy link
Copy Markdown
Member

CC @serhiy-storchaka

@BHUVANSH855
BHUVANSH855 force-pushed the fix-155052-decimal-context-copy-docstring branch from 2084196 to 468472e Compare August 2, 2026 09:44
@serhiy-storchaka
serhiy-storchaka merged commit 04a1fcf into python:main Aug 2, 2026
54 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @BHUVANSH855 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9 3.14

@BHUVANSH855

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka
i can backport these, should i ?

@serhiy-storchaka

Copy link
Copy Markdown
Member

It would be nice.

@BHUVANSH855

Copy link
Copy Markdown
Contributor Author

It would be nice.

ok I am working on backporting this, and soon submit backport PRs.

@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155081 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 2, 2026
@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155082 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 2, 2026
@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155083 is a backport of this pull request to the 3.14 branch.

serhiy-storchaka pushed a commit that referenced this pull request Aug 2, 2026
serhiy-storchaka pushed a commit that referenced this pull request Aug 2, 2026
…H-155083) (GH-155088)

(cherry picked from commit 55ab1a6)

Co-authored-by: Bhuvansh <bhuvanshkataria@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants