]> granicus.if.org Git - python/commit
bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)
authorGiampaolo Rodola <g.rodola@gmail.com>
Tue, 19 Jun 2018 15:27:29 +0000 (08:27 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Jun 2018 15:27:29 +0000 (08:27 -0700)
commitc7f02a965936f197354d7f4e6360f4cfc86817ed
tree9402cdb5daa1881eefce00dbc70c8b2dfc7f40f7
parent936f03e7fafc28fd6fdfba11d162c776b89c0167
bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)

bpo-33671
* use memoryview() with size == file size on Windows, see https://github.com/python/cpython/pull/7160#discussion_r195405230
* release intermediate (sliced) memoryview immediately
* replace "OSX" occurrences with "macOS"
* add some unittests for copyfileobj()
Doc/library/shutil.rst
Doc/whatsnew/3.8.rst
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2018-05-28-23-25-17.bpo-33671.GIdKKi.rst
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c