SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

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.
V
Victor Stinner committed
b9f814ce6fdc2fd636bb01e60c60f3ed708a245f
Parent: 0802fd6
Committed by GitHub <noreply@github.com> on 11/9/2023, 10:10:21 PM