Message 288616 - Python tracker

Message288616

Author goodboy
Recipients goodboy
Date 2017-02-27.00:57:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488157044.73.0.933925559387.issue29659@psf.upfronthosting.co.za>
In-reply-to
Content
It would be handy to be able to pass the `length` default argument defined by `shutil.copyfileobj()` to other public functions througout the module. When copying very large files (1GB +), increasing the memory buffer can divide the copy time in half and currently the only way to accomplish this is by overriding the needed function(s) which call `shutil.copyfileobj()`.

I propose a simple non-invasive change where the following functions will also expose the `length` kwarg and pass it downwards to `copyfileobj`:
- copyfile
- copy
- copy2
History
Date User Action Args
2017-02-27 00:57:24goodboysetrecipients: + goodboy
2017-02-27 00:57:24goodboysetmessageid: <1488157044.73.0.933925559387.issue29659@psf.upfronthosting.co.za>
2017-02-27 00:57:24goodboylinkissue29659 messages
2017-02-27 00:57:24goodboycreate