summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2025-01-13 11:46:13 (GMT)
committerGitHub <noreply@github.com>2025-01-13 11:46:13 (GMT)
commit6ff8f82f92a8af363b2bdd8bbaba5845eef430fc (patch)
treed9a62cfb08820f8bd5c329b95882fb0392371c7b /Lib/enum.py
parent39fc7ef4fe211e8f7d3b5a6e392e475ecdfbce72 (diff)
downloadcpython-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