https://github.com/python/cpython/commit/e17486982ca7b40cc8fbc1c76ad25facc5e76349
commit: e17486982ca7b40cc8fbc1c76ad25facc5e76349
branch: main
author: Bénédikt Tran <[email protected]>
committer: hugovk <[email protected]>
date: 2024-11-15T14:26:38+02:00
summary:
gh-89083: small docs fixup for UUIDv8 (#126857)
files:
M Doc/library/uuid.rst
diff --git a/Doc/library/uuid.rst b/Doc/library/uuid.rst
index 6166c22caedf81..9be12edd36b9a8 100644
--- a/Doc/library/uuid.rst
+++ b/Doc/library/uuid.rst
@@ -11,9 +11,9 @@
--------------
This module provides immutable :class:`UUID` objects (the :class:`UUID` class)
-and the functions :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, :func:`uuid5`
for
-generating version 1, 3, 4, 5, and 8 UUIDs as specified in :rfc:`9562` (which
-supersedes :rfc:`4122`).
+and the functions :func:`uuid1`, :func:`uuid3`, :func:`uuid4`, :func:`uuid5`,
+and :func:`uuid.uuid8` for generating version 1, 3, 4, 5, and 8 UUIDs as
+specified in :rfc:`9562` (which supersedes :rfc:`4122`).
If all you want is a unique ID, you should probably call :func:`uuid1` or
:func:`uuid4`. Note that :func:`uuid1` may compromise privacy since it creates
@@ -323,6 +323,9 @@ The following options are accepted:
Specify the function name to use to generate the uuid. By default
:func:`uuid4`
is used.
+ .. versionadded:: next
+ Allow generating UUID version 8.
+
.. option:: -n <namespace>
--namespace <namespace>
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]