[Python-ideas] hashlib.sha256(file_obj)

2022-03-14 Thread Aur Saraf
Hi, TL;DR: you can read just the code snippets and the last paragraph. First of all, I'm assuming hashlib is used to calculate hashes of large files in production very very often, such that even small performance and usability improvements would make a huge difference. If you don't share this ass

[Python-ideas] Re: hashlib.sha256(file_obj)

2022-03-14 Thread Aur Saraf
It was brought to my attention that there is an open ticket for this. Moving discussion there: https://bugs.python.org/issue45150 Aur On Sun, Mar 13, 2022 at 6:19 PM Aur Saraf wrote: > Hi, > > TL;DR: you can read just the code snippets and the last paragraph. > > First of al