diff options
author | Raymond Hettinger <python@rcn.com> | 2011-01-24 05:07:13 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-01-24 05:07:13 (GMT) |
commit | d0d59b138d3e7d45f2b47e22346d80b894be22c1 (patch) | |
tree | 2bab7dd671d33e06232819da1e26eb9cdc295234 | |
parent | bf1d2bc7cbebf59c9128805e8261406420053311 (diff) | |
download | cpython-d0d59b138d3e7d45f2b47e22346d80b894be22c1.zip cpython-d0d59b138d3e7d45f2b47e22346d80b894be22c1.tar.gz cpython-d0d59b138d3e7d45f2b47e22346d80b894be22c1.tar.bz2 |
Add entry for hashlib and expand the GC entry.
-rw-r--r-- | Doc/whatsnew/3.2.rst | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 257532a..3f23a14 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -551,8 +551,9 @@ Some smaller changes made to the core Python language are: module, or on the command line. A :exc:`ResourceWarning` is issued at interpreter shutdown if the - :data:`gc.garbage` list isn't empty. This is meant to make the programmer - aware that their code contains object finalization issues. + :data:`gc.garbage` list isn't empty, and if :attr:`gc.DEBUG_UNCOLLECTABLE` is + set, all uncollectable objects are printed. This is meant to make the + programmer aware that their code contains object finalization issues. A :exc:`ResourceWarning` is also issued when a :term:`file object` is destroyed without having been explicitly closed. While the deallocator for such @@ -1213,6 +1214,24 @@ wrong results. (Patch submitted by Nir Aides in :issue:`7610`.) +hashlib +------- + +The :mod:`hashlib` module has two new constant attributes listing the hashing +algorithms guaranteed to be present in all implementations and those available +on the current implementation: + + >>> import hashlib + >>> hashlib.algorithms_guaranteed + {'sha1', 'sha224', 'sha384', 'sha256', 'sha512', 'md5'} + >>> hashlib.algorithms_available + {'md2', 'SHA256', 'SHA512', 'dsaWithSHA', 'mdc2', 'SHA224', 'MD4', 'sha256', + 'sha512', 'ripemd160', 'SHA1', 'MDC2', 'SHA', 'SHA384', 'MD2', + 'ecdsa-with-SHA1','md4', 'md5', 'sha1', 'DSA-SHA', 'sha224', + 'dsaEncryption', 'DSA', 'RIPEMD160', 'sha', 'MD5', 'sha384'} + +(Suggested by Carl Chenet in :issue:`7418`.) + ast --- |