[docs] Omit parens from hashlib.md5() in hmac

Georg Brandl georg at python.org
Sun Oct 6 09:49:41 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 14.09.2013 06:07, schrieb Edward Z. Yang:
> Presently we have this text at http://docs.python.org/2/library/hmac.html:
> 
> Return a new hmac object. If msg is present, the method call update(msg) is
> made. digestmod is the digest constructor or module for the HMAC object to
> use. It defaults to the hashlib.md5() constructor.
> 
> This text is misleading, as it suggests that the usage of the digestmod
> param is:
> 
> hmac.new(secret, msg, hashlib.sha256())
> 
> which is not right.

Hi Edward,

thanks for the report, this is now fixed and should be going live soon.

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)

iEYEARECAAYFAlJRFhUACgkQN9GcIYhpnLBThgCgmSX9X6BBSuYu/AzEMYmp/UP+
IX0AoIHZZBvBC/rnq8MyDAz5LqU8k2uk
=vd4s
-----END PGP SIGNATURE-----


More information about the docs mailing list