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

STINNER Victor report at bugs.python.org
Tue Apr 9 13:28:40 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

Note: *Technically*, you can disable the compilation of the _sha512 module using "*disabled*" in Modules/Setup, but I'm not sure if it's a common use case. At least, it makes sense to me when we are sure that OpenSSL and _hashlib are available ;-) I didn't want to mention that since I'm not sure that it's really relevant in this discussion. (I was aware of the regression, and hopefully it's now fixed!)

----------

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


More information about the Python-bugs-list mailing list