summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_bytecodes.c
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2025-03-04 09:47:19 (GMT)
committerGitHub <noreply@github.com>2025-03-04 09:47:19 (GMT)
commit3929af5e3a203291dc07b40c9c3515492e3ba7b4 (patch)
treecdf12cf2586ebff3eecfe4e56359c1aae35ea8b5 /Python/optimizer_bytecodes.c
parent0b6e98c8417316a1692bfb98eaea7c44194dcf8d (diff)
downloadcpython-3929af5e3a203291dc07b40c9c3515492e3ba7b4.zip
cpython-3929af5e3a203291dc07b40c9c3515492e3ba7b4.tar.gz
cpython-3929af5e3a203291dc07b40c9c3515492e3ba7b4.tar.bz2
gh-89083: add support for UUID version 7 (RFC 9562) (#121119)
Add support for generating UUIDv7 objects according to RFC 9562, §5.7 [1]. The functionality is provided by the `uuid.uuid7()` function. The implementation is based on a 42-bit counter as described by Method 1, §6.2 [2] and guarantees monotonicity within the same millisecond. [1]: https://www.rfc-editor.org/rfc/rfc9562.html#section-5.7 [2]: https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2 --------- Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Éric <merwok@netwok.org>
Diffstat (limited to 'Python/optimizer_bytecodes.c')
0 files changed, 0 insertions, 0 deletions