Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
42d55b46826fa1edc2cabc6d26b62ddb4b8bcd14174630c8fcd80afbc3d4745392d28926889ea44b66e67be6dc48ba3d8ba14ae9b7a169c9b082c9094c70e905b7a2b275deb75e97cc3051f34ebdf9a7700661fc0474de4a446d532e39072ebc1a07694e07f965dbc87ff43687c3cab6e758741c18d0c42df6f416fcb6a1f6048c9be3f02499c676106befca2aacadff7f536eaee28981a5ac198764b28af0baef939b5a8ef85b202d08821eaa9ad4571d2fef9ac658a756b9d4406796d4eeded0e54a7240ab2fa5ee85ad3ce894359e6d7e437d8cf2d917b073ab65654d07ae6d76389bd4ab55e9ddb748755de012d7ad4560d87cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
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`, | ||
Member 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. MemberAuthor 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 Member 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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.