-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
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
Merged
Merged
Changes from 50 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
42d55b4
add UUIDv7 implementation
picnixz 6826fa1
add tests
picnixz edc2cab
blurb
picnixz c6d26b6
update CHANGELOG
picnixz 2ddb4b8
update RFC number
picnixz bcd1417
add TODO in the docs
picnixz 4630c8f
Merge branch 'main' into uuid-v7-method-1
picnixz cd80afb
Merge branch 'main' into uuid-v7-89083
picnixz c3d4745
add UUIDv8 implementation
picnixz 392d289
add tests
picnixz 26889ea
blurb
picnixz 44b66e6
add What's New entry
picnixz 7be6dc4
add docs
picnixz 8ba3d8b
Improve hexadecimal masks reading
picnixz a14ae9b
add uniqueness test
picnixz 7a169c9
Update mentions to RFC 4122 to RFC 4122/9562 when possible.
picnixz b082c90
Update docs
picnixz 94c70e9
Merge branch 'main' into uuid-v8-89083
picnixz 05b7a2b
Merge branch 'main' into uuid-v7-method-1
hugovk 275deb7
Merge branch 'main' into uuid-v8-89083
hugovk 5e97cc3
Apply suggestions from code review
picnixz 051f34e
Update Lib/test/test_uuid.py
picnixz bdf9a77
Apply suggestions from code review
picnixz 00661fc
Merge remote-tracking branch 'origin/uuid-v8-89083'
picnixz 0474de4
Merge remote-tracking branch 'origin/uuid-v8-89083' into uuid-v7-89083
picnixz a446d53
Merge remote-tracking branch 'upstream/main' into uuid-v7-89083
picnixz 2e39072
update CLI
picnixz ebc1a07
Merge branch 'main' into uuid-v7-89083
picnixz 694e07f
post-merge
picnixz 965dbc8
Merge remote-tracking branch 'origin/uuid-v7-method-1' into uuid-v7-8…
picnixz 7ff4368
improve readability
picnixz 7c3cab6
post-merge
picnixz e758741
uniqueness test
picnixz c18d0c4
improve test comments
picnixz 2df6f41
Merge remote-tracking branch 'upstream/main'
picnixz 6fcb6a1
fix lint
picnixz f6048c9
Merge branch 'main' into uuid-v7-89083
picnixz be3f024
post-merge
picnixz 99c6761
Merge branch 'main' into uuid-v7-89083
picnixz 06befca
use versionchanged instead of versionadded
picnixz 2aacadf
Merge branch 'main' into uuid-v7-method-1
picnixz f7f536e
Merge branch 'main' into uuid-v7-method-1
picnixz aee2898
improve UUIDv7 tests readability
picnixz 1a5ac19
improve UUIDv7 uniqueness tests
picnixz 8764b28
Merge branch 'main' into uuid-v7-method-1
picnixz af0baef
Merge branch 'main' into uuid-v7-method-1
picnixz 939b5a8
Merge branch 'main' into feat/uuid/v7-89083
picnixz ef85b20
use `UUID._from_int` for UUIDv7 and remove `divmod` usage
picnixz 2d08821
Merge branch 'main' into uuid-v7-method-1
picnixz eaa9ad4
Merge branch 'main' into uuid-v7-method-1
picnixz 571d2fe
backport Victor's review on UUIDv6
picnixz f9ac658
address Victor's review
picnixz a756b9d
remove mention of UNIX_EPOCH + 10k years as the proof is long
picnixz 4406796
import `time` globally as UUIDv7 is likely to be used now
picnixz d4eeded
run half-black
picnixz 0e54a72
update docs
picnixz 40ab2fa
Revert "run half-black"
picnixz 5ee85ad
Merge branch 'main' into uuid-v7-method-1
picnixz 3ce8943
add blank line for readability
picnixz 59e6d7e
update comment
picnixz 437d8cf
Update Lib/uuid.py
picnixz 2d917b0
Merge remote-tracking branch 'upstream/main' into feat/uuid/v7-89083
picnixz 73ab656
improve online docs
picnixz 54d07ae
`constructor` -> `factory` in labels
picnixz 6d76389
reword prolog
picnixz bd4ab55
'is outside the scope' -> 'exceeds the scope'
picnixz e9ddb74
Apply suggestions from code review
picnixz 8755de0
apply PEP-8 only for UUID6, UUID7 and UUID8
picnixz 12d7ad4
small fix
merwok 560d87c
avoid complex language :)
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.