-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Expose the length
arg from shutil.copyfileobj for public use
#73845
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would be handy to be able to pass the I propose a simple non-invasive change where the following functions will also expose the
|
This seems reasonable to me. |
How about increasing default value to 32KiB or 64KiB too? binutils's cp works well for most cases, while it doesn't have option to specify blocksize. binutils cp uses 128KiB block for normal file. see more information in https://github.com/coreutils/coreutils/blob/master/src/ioblksize.h But copyfileobj can be used other file-likes. |
Could you please provide any benchmarks Tyler? |
bpo-33671 fixed this. |
length
arg for public use #328Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: