How to derive a class from md5?

Erik Max Francis max at alcyone.com
Wed Jul 14 02:29:41 EDT 2004


Shalabh Chaturvedi wrote:

> Why subclass? You could just get the md5 object by doing:
> 
> from md5 import md5
> m = md5(open(filename).read())
> 
> Simple is better than complex.

If you really want to mix the old md5 functionality with the new, a
class containing an md5 instance would be a fine solution.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Sentimentality is a superstructure covering brutality.
    -- C.G. Jung



More information about the Python-list mailing list