Wayne Werner wrote:
Including the sister bug - continually importing something and you still get
the old function because you forgot to delete the .pyc file. Whoops!
Er, whoops is right... I think you may have misinterpreted what you were
seeing.
When you import a module for the first time,
On Wed, Nov 10, 2010 at 5:16 PM, Terry Carroll wrote:
> This isn't a question, I'm just offering it as a cautionary tale and an
> opportunity to laugh at my own stupidity.
>
> Turns out my function was working correctly all along; but with my typo, I
> was printing out the value from the first c
This isn't a question, I'm just offering it as a cautionary tale and an
opportunity to laugh at my own stupidity.
I have a small function to calculate the MD5 checksum for a file. It's
nothing fancy:
###
import hashlib
def md5(filename, bufsize=65536):
""