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

Inada Naoki report at bugs.python.org
Wed Apr 10 03:57:29 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

* Is hashlib large, slow to import library? -- Yes.
* random module use hashlib only for specific (rare) use case? -- Yes.
* Does user of random module needs hashlib in most case? -- No.  For example, tmpfile user may not need hashlib.

I'm +1 on PR 12728.

----------
nosy: +inada.naoki

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


More information about the Python-bugs-list mailing list