diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-09 22:10:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 22:10:21 (GMT) |
commit | b9f814ce6fdc2fd636bb01e60c60f3ed708a245f (patch) | |
tree | 16c86ad269d4d818f30205f615352a0686a374f8 /Python/codecs.c | |
parent | 0802fd6c8ee0cacb3ab555dd86e235a5dfab7618 (diff) | |
download | cpython-b9f814ce6fdc2fd636bb01e60c60f3ed708a245f.zip cpython-b9f814ce6fdc2fd636bb01e60c60f3ed708a245f.tar.gz cpython-b9f814ce6fdc2fd636bb01e60c60f3ed708a245f.tar.bz2 |
gh-111881: Import _sha2 lazily in random (#111889)
The random module now imports the _sha2 module lazily in the
Random.seed() method for str, bytes and bytearray seeds. It also
imports lazily the warnings module in the _randbelow() method for
classes without getrandbits(). Lazy import makes Python startup
faster and reduces the number of imported modules at startup.
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions