On Wed, Mar 02, 2022 at 01:08:41AM +0000, Davis, Matthew via Python-ideas wrote: > Hi, > > Currently shutil.copyfileobj returns nothing. > I would like to be able to find out how many bytes were copied.
That seems reasonable to me. It would be a similar change to having file.write() return the number of bytes or characters written. You could put an enhancement request on the bug tracker. It would help if you can also describe the reason why you want this, and link back to this discussion. https://bugs.python.org/ -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/FJ4O2YKYQFFH4ZN5C437YVT7ESXD7CB6/ Code of Conduct: http://python.org/psf/codeofconduct/