I opened two issues regarding copyfileobj that were not bugs, but a fix that was involved helped me figure out I needed a new external drive, since it displayed the error number from the copyfileobj function. I'd like a modified version of this code implemented permanently in shutil.py so others could see if they have the same issue as me. Here are the two issues I opened:
This is the original issue that has the code I was using that Eryksun posted. https://github.com/python/cpython/issues/96721 Here's the second issue where it happened again. I put the error message in this post, so you can see how it helped me. Also, the code might need to be modified slightly, since it generated an error. https://github.com/python/cpython/issues/102357 _______________________________________________ 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/L7SL6PN6SDLLOHRMQTK2PZGD2ZDTW5P2/ Code of Conduct: http://python.org/psf/codeofconduct/