Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-144433: clarify patch.dict behavior#144434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
romuald wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromromuald:gh-144433-patch-dict-clarify

Conversation

@romuald
Copy link
Contributor

@romualdromuald commentedFeb 3, 2026
edited by bedevere-appbot
Loading

Update wording to indicate that unittest.mock patch.dict will make a shallow copy of the patched dict (opposed to a deep copy)

Update wording to indicate that unittest.mock patch.dict will make ashallow copy of the patched dict (opposed to a deep copy)
@picnixz
Copy link
Member

Most of the time we use "copy" for "shallow" copy as opposed to "deep" copy which is usually mentioned. However, since this is the only occurrence of that in this page, I guess it's also fine. Can you check if there are other places in the unittest docs that require this improvement? (better do it in one go). Also can you also update the RST docs? it's much more important.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@cjw296cjw296Awaiting requested review from cjw296cjw296 is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@romuald@picnixz

[8]ページ先頭

©2009-2026 Movatter.jp