@@ -551,8 +551,9 @@ Some smaller changes made to the core Python language are:
551551 module, or on the command line.
552552
553553 A :exc: `ResourceWarning ` is issued at interpreter shutdown if the
554- :data: `gc.garbage ` list isn't empty. This is meant to make the programmer
555- aware that their code contains object finalization issues.
554+ :data: `gc.garbage ` list isn't empty, and if :attr: `gc.DEBUG_UNCOLLECTABLE ` is
555+ set, all uncollectable objects are printed. This is meant to make the
556+ programmer aware that their code contains object finalization issues.
556557
557558 A :exc: `ResourceWarning ` is also issued when a :term: `file object ` is destroyed
558559 without having been explicitly closed. While the deallocator for such
@@ -1213,6 +1214,24 @@ wrong results.
12131214
12141215(Patch submitted by Nir Aides in :issue: `7610 `.)
12151216
1217+ hashlib
1218+ -------
1219+
1220+ The :mod: `hashlib ` module has two new constant attributes listing the hashing
1221+ algorithms guaranteed to be present in all implementations and those available
1222+ on the current implementation:
1223+
1224+ >>> import hashlib
1225+ >>> hashlib.algorithms_guaranteed
1226+ {'sha1', 'sha224', 'sha384', 'sha256', 'sha512', 'md5'}
1227+ >>> hashlib.algorithms_available
1228+ {'md2', 'SHA256', 'SHA512', 'dsaWithSHA', 'mdc2', 'SHA224', 'MD4', 'sha256',
1229+ 'sha512', 'ripemd160', 'SHA1', 'MDC2', 'SHA', 'SHA384', 'MD2',
1230+ 'ecdsa-with-SHA1','md4', 'md5', 'sha1', 'DSA-SHA', 'sha224',
1231+ 'dsaEncryption', 'DSA', 'RIPEMD160', 'sha', 'MD5', 'sha384'}
1232+
1233+ (Suggested by Carl Chenet in :issue: `7418 `.)
1234+
12161235ast
12171236---
12181237
0 commit comments