New submission from Carl Chenet <cha...@ohmytux.com>: Hi,
The hashlib module could provide a tuple offering the names of the different hash algorithms which are guaranteed to be supported. The expected result: >>> import hashlib >>> hashlib.algorithms ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512') Here is a patch to do so. It also provides an update for the hashlib documentation and a test case. Bye, Carl Chenet ---------- components: Library (Lib) files: algorithms_constant_attribute_in_hashlib_module.diff keywords: patch messages: 95857 nosy: chaica_ severity: normal status: open title: hashlib : the names of the different hash algorithms type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file15427/algorithms_constant_attribute_in_hashlib_module.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7418> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com