Re: MD5 module Pythonicity

2005-10-15 Thread Paul Rubin
Leandro Lameiro <[EMAIL PROTECTED]> writes: > Maybe I've got a distorted impression about the importance of this. As > I'm not an experienced programmer, I'd probably trust more in your > impressions than mine. :) Good call. :) > I mean, if we all agreed that it is a common thing, a patch for thi

Re: MD5 module Pythonicity

2005-10-15 Thread Leandro Lameiro
Hi Fredrik (and other too). First of all, thanks for taking your time to help me. On 10/15/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Leandro Lameiro wrote: > > > What's wrong in having a function like the one I said, that would > > split files for you, feed md5.update and, when it is over, re

Re: MD5 module Pythonicity

2005-10-15 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > > Forcing every digest module to add code to cater for just one of many > > use cases is most likely a waste of time. > here's the hash API specification, btw: > http://www.python.org/peps/pep-0247.html I agree with you and Mike that a file checksu

Re: MD5 module Pythonicity

2005-10-14 Thread Fredrik Lundh
Fredrik Lundh wrote: > Forcing every digest module to add code to cater for just one of many > use cases is most likely a waste of time. here's the hash API specification, btw: http://www.python.org/peps/pep-0247.html -- http://mail.python.org/mailman/listinfo/python-list

Re: MD5 module Pythonicity

2005-10-14 Thread Fredrik Lundh
Leandro Lameiro wrote: > What's wrong in having a function like the one I said, that would > split files for you, feed md5.update and, when it is over, return the > digest? Calculating the digest sum for a file on disk, without doing anything else with that file, is a very small subset of everyth

Re: MD5 module Pythonicity

2005-10-14 Thread Mike Meyer
Leandro Lameiro <[EMAIL PROTECTED]> writes: > What's wrong in having a function like the one I said, that would > split files for you, feed md5.update and, when it is over, return the > digest? Nothing in particular; it's just a trivial thing to write. If you add every usefull utility function to

MD5 module Pythonicity

2005-10-14 Thread Leandro Lameiro
Hi folks Recently I have been discussing with a friend about python ease of use, and it is really good at this. This friend needed to calculate the MD5 hash of some files and was telling me about the MD5 module. The way he told me and how it is described in the Python Docs, the method to calculate