SIGN IN SIGN UP

gh-128150: Improve performances of `uuid.uuid*` constructor functions. (#128151)

We introduce a private constructor `UUID._from_int()` for RFC 4122/9562 UUIDs,
which takes the integral UUID value as input. The latter must have correctly set
its variant and version bits. We also make `UUID.__init__()` slightly more efficient.
B
Bénédikt Tran committed
6ff8f82f92a8af363b2bdd8bbaba5845eef430fc
Parent: 39fc7ef
Committed by GitHub <noreply@github.com> on 1/13/2025, 11:46:13 AM