bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows by giampaolo · Pull Request #7681 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reintroduce memoryview() variant of copyfileobj()
...and use it from copyfile() only if WINDOWS and file size >= 128 MiB
  • Loading branch information
giampaolo committed Jun 13, 2018
commit 8a3f88eb81560b520f13c9d48da779a262a49e18
42 changes: 36 additions & 6 deletions Lib/shutil.py
17 changes: 17 additions & 0 deletions Lib/test/test_shutil.py