Skip to content

bpo-33671: allow setting shutil.copyfile() bufsize globally - #12016

Merged
methane merged 1 commit into
python:masterfrom
giampaolo:shutil-copyfile-bufsize
Feb 24, 2019
Merged

bpo-33671: allow setting shutil.copyfile() bufsize globally#12016
methane merged 1 commit into
python:masterfrom
giampaolo:shutil-copyfile-bufsize

Conversation

@giampaolo

@giampaologiampaolo commented Feb 24, 2019

Copy link
Copy Markdown
Contributor

Looking back at BPO-33671 / PR #7160: since copyfileobj() is used by all copy* functions one may want to set file.read() bufsize globally as shutil.COPY_BUFSIZE = .... This may be useful on Windows where bufsize defaults to 1 MiB. I decided not to document shutil.COPY_BUFSIZE because I consider it a corner case.

https://bugs.python.org/issue33671

@giampaologiampaolo changed the title BPO-33671: allow setting shutil.copyfile()'s file.read() bufsize globallybpo-33671: allow setting shutil.copyfile()'s file.read() bufsize globallyFeb 24, 2019
@methanemethane changed the title bpo-33671: allow setting shutil.copyfile()'s file.read() bufsize globallybpo-33671: allow setting shutil.copyfile() bufsize globallyFeb 24, 2019
@methane
methane merged commit 3b0abb0 into python:masterFeb 24, 2019
@giampaolo
giampaolo deleted the shutil-copyfile-bufsize branch February 25, 2019 14:51
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@giampaolo@methane@the-knights-who-say-ni@bedevere-bot