new is missing in module hmac SHA-based encryption function in Python
Matt Nordhoff
mnordhoff at mattnordhoff.com
Wed Nov 21 11:50:52 EST 2007
Hailong Wang wrote:
> Matt,
>
> Thanks for response, I changed my script to hw_hmac.py, but still does
> not work.
>
> Traceback (most recent call last):
> File "C:/Python25/hw_script/my_hmac.py", line 1, in <module>
> import hmac
> File "C:\Python25\hw_script\hmac.py", line 4, in <module>
> myhmac = hmac.new("test")
> AttributeError: 'module' object has no attribute 'new'
>>>>
(Note to anyone else: He responded off-list saying he got it to work. :-) )
--
More information about the Python-list
mailing list