[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

Xavier de Gaye report at bugs.python.org
Tue Apr 9 11:05:26 EDT 2019


Xavier de Gaye <xdegaye at gmail.com> added the comment:

> You could also use the internal _sha512 module. It's always present

This is not true at the moment, the _sha512 module is not present when openssl is missing. This is a bug in setup.py that prevents building the _sha512 module when openssl is missing. See issue 36544.

It is possible that this issue (since it started because of hashlib failures) and also issue 36414 are caused by this problem.

----------
nosy: +xdegaye

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36559>
_______________________________________


More information about the Python-bugs-list mailing list