-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-89083: add support for UUID version 7 (RFC 9562) #121119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
42d55b4
6826fa1
edc2cab
c6d26b6
2ddb4b8
bcd1417
4630c8f
cd80afb
c3d4745
392d289
26889ea
44b66e6
7be6dc4
8ba3d8b
a14ae9b
7a169c9
b082c90
94c70e9
05b7a2b
275deb7
5e97cc3
051f34e
bdf9a77
00661fc
0474de4
a446d53
2e39072
ebc1a07
694e07f
965dbc8
7ff4368
7c3cab6
e758741
c18d0c4
2df6f41
6fcb6a1
f6048c9
be3f024
99c6761
06befca
2aacadf
f7f536e
aee2898
1a5ac19
8764b28
af0baef
939b5a8
ef85b20
2d08821
eaa9ad4
571d2fe
f9ac658
a756b9d
4406796
d4eeded
0e54a72
40ab2fa
5ee85ad
3ce8943
59e6d7e
437d8cf
2d917b0
73ab656
54d07ae
6d76389
bd4ab55
e9ddb74
8755de0
12d7ad4
560d87c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -919,8 +919,9 @@ urllib | |
uuid | ||
---- | ||
|
||
* Add support for UUID versions 6 and 8 via :func:`uuid.uuid6` and | ||
:func:`uuid.uuid8` respectively, as specified in :rfc:`9562`. | ||
* Add support for UUID versions 6, 7, and 8 via :func:`uuid.uuid6`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not to be pedantic, but is via correct? It seems to suggest that the functions are the only thing that support these versions, but the support is added in the UUID class and the functions are there too as a convenience. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but in general, we don't really want people to directly use the UUID class. Strictly speaking, we're only adding the support for the version value but we don't check how it's been generated. I prefer users to actually use the factories. Otherwise, I can say that the UUID class now accepts There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I slightly disagree but won’t argue 🙂 |
||
:func:`uuid.uuid7`, and :func:`uuid.uuid8` respectively, as specified | ||
in :rfc:`9562`. | ||
(Contributed by Bénédikt Tran in :gh:`89083`.) | ||
|
||
* :const:`uuid.NIL` and :const:`uuid.MAX` are now available to represent the | ||
|
Uh oh!
There was an error while loading. Please reload this page.