summaryrefslogtreecommitdiffstats
path: root/Python/hashtable.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-09 22:10:21 (GMT)
committerGitHub <noreply@github.com>2023-11-09 22:10:21 (GMT)
commitb9f814ce6fdc2fd636bb01e60c60f3ed708a245f (patch)
tree16c86ad269d4d818f30205f615352a0686a374f8 /Python/hashtable.c
parent0802fd6c8ee0cacb3ab555dd86e235a5dfab7618 (diff)
downloadcpython-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/hashtable.c')
0 files changed, 0 insertions, 0 deletions