New submission from STINNER Victor <victor.stin...@haypocalc.com>: CPython source code contains a lot of duplicate "0123456789abcdef" constants, declared as static variables. Attached patch uses one unique variable. Use also Py_hexdigit instead of ((c>9) ? c+'a'-10 : c + '0') in binascii, _hashopenssl, md5, sha1, sha256 and sha512 modules.
---------- files: hexdigits.patch keywords: patch messages: 144754 nosy: haypo priority: normal severity: normal status: open title: Add Py_hexdigits constant: use one unique constant to format a digit to hexadecimal versions: Python 3.3 Added file: http://bugs.python.org/file23288/hexdigits.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13088> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com