How to derive a class from md5?

Erik Max Francis max at alcyone.com
Tue Jul 13 18:24:10 EDT 2004


Josef Wolf wrote:

>   import md5
> 
>   class md5file(md5):
	...
> dir(md5) shows that md5 don't have an __init__() method so I tried to
> use
> its new(), with the same result.  What am I doing wrong here?

md5 is a module, not a class!

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ All the people in my neighborhood turn around and get mad and sing
    -- Public Enemy



More information about the Python-list mailing list