diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-01-13 11:46:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-13 11:46:13 (GMT) |
commit | 6ff8f82f92a8af363b2bdd8bbaba5845eef430fc (patch) | |
tree | d9a62cfb08820f8bd5c329b95882fb0392371c7b /Lib/enum.py | |
parent | 39fc7ef4fe211e8f7d3b5a6e392e475ecdfbce72 (diff) | |
download | cpython-6ff8f82f92a8af363b2bdd8bbaba5845eef430fc.zip cpython-6ff8f82f92a8af363b2bdd8bbaba5845eef430fc.tar.gz cpython-6ff8f82f92a8af363b2bdd8bbaba5845eef430fc.tar.bz2 |
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.
Diffstat (limited to 'Lib/enum.py')
0 files changed, 0 insertions, 0 deletions