new is missing in module hmac SHA-based encryption function in Python

Matt Nordhoff mnordhoff at
Wed Nov 21 17:50:52 CET 2007

Hailong Wang wrote:
> Matt,
> Thanks for response, I changed my script to, but still does
> not work.
> Traceback (most recent call last):
>   File "C:/Python25/hw_script/", line 1, in <module>
>     import hmac
>   File "C:\Python25\hw_script\", line 4, in <module>
>     myhmac ="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