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-142407: Update shutil.rst to clarify copy performance on Windows#142408

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
NewUserHa wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromNewUserHa:patch-7

Conversation

@NewUserHa
Copy link
Contributor

@NewUserHaNewUserHa commentedDec 8, 2025
edited by github-actionsbot
Loading

Clarify the behavior of efficiency of shutil.copyfile and shutil.copy2 on Windows.

Fixs:#142407


📚 Documentation preview 📚:https://cpython-previews--142408.org.readthedocs.build/

Clarify the behavior of shutil.copyfile and shutil.copy2 on Windows, including buffer size and efficiency.
Comment on lines +544 to +545
:func:`shutil.copy2` uses native call ``CopyFile2`` on windows and it is the most
efficient and support copy-on-write, but preserve the metadata.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
:func:`shutil.copy2` uses nativecall``CopyFile2`` onwindows and it is the most
efficientand support copy-on-write,but preserve the metadata.
:func:`shutil.copy2` usesthenative ``CopyFile2``callonWindows, which is the most
efficientmethod, supports copy-on-write,and preserves metadata.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

thanks

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

@giampaologiampaoloAwaiting requested review from giampaologiampaolo is a code owner

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@NewUserHa@StanFromIreland

[8]ページ先頭

©2009-2026 Movatter.jp