-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-89083: add support for UUID version 6 (RFC 9562) #120650
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 15 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
818d417
add implementation
picnixz 16565f2
add tests
picnixz e6c1d5f
add docs
picnixz cbaaff4
add WhatsNew
picnixz 4ef04b9
blurb
picnixz 943d13e
fix a mask
picnixz 8344e64
fix random bytes generation
picnixz 295d82d
fixup some comments
picnixz 1aaa483
Update Lib/uuid.py
picnixz 6847b77
Update Doc/whatsnew/3.14.rst
picnixz 4d9862e
revert modifications on properties for now
picnixz 08607f7
fixup
picnixz 55edd0c
update variable names
picnixz 5b15134
remove references to v7 and v8
picnixz e84cf17
Merge branch 'main' into uuid-rfc-9562
picnixz 9bc8090
Merge branch 'main' into uuid-v6-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 a276857
add test vectors
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 4907650
Merge branch 'main' into uuid-rfc-9562
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 394a805
Merge branch 'main' into uuid-v6-89083
picnixz a40c19b
Merge remote-tracking branch 'origin/uuid-v8-89083' into uuid-v6-89083
picnixz 00661fc
Merge remote-tracking branch 'origin/uuid-v8-89083'
picnixz c188ced
post-merge
picnixz 7e5d364
update docs
picnixz b8ddc02
improve readability
picnixz 384a02e
improve test readability
picnixz e4a7198
improve test coverage
picnixz aed5839
update docs
picnixz 6daae22
Merge remote-tracking branch 'origin/uuid-rfc-9562' into uuid-v6-89083
picnixz bca3776
Merge remote-tracking branch 'upstream/main' into uuid-v6-89083
picnixz 2df6f41
Merge remote-tracking branch 'upstream/main'
picnixz 2d003fa
Merge branch 'main' into uuid-v6-89083
picnixz 5ad6268
post-merge
picnixz d49855d
post-merge
picnixz a5682f8
fix comment
picnixz 969f1c5
Merge branch 'main' into uuid-v6-89083
picnixz cc459dd
use versionchanged instead of versionadded
picnixz 0d9f687
fix typo
picnixz d1a6cd8
Merge branch 'main' into uuid-rfc-9562
picnixz d70279f
Cosmetic change
picnixz b8a0e72
Update Doc/whatsnew/3.14.rst
picnixz 6c6339b
fix lint
picnixz 1e927b6
Update Lib/test/test_uuid.py
picnixz 68394e6
Update Lib/test/test_uuid.py
picnixz c4a696d
Merge branch 'main' into uuid-rfc-9562
picnixz e47df67
update docs
picnixz 2de0a05
improve UUIDv6 uniqueness tests
picnixz b55adc4
explain rationale of randomized clock sequence
picnixz 6c938d7
Merge branch 'main' into uuid-rfc-9562
picnixz 09ee619
Merge branch 'main' into uuid-rfc-9562
picnixz 769e60d
Merge branch 'main' into uuid-rfc-9562
picnixz 6e8abbe
use `UUID._from_int` for UUIDv6
picnixz aeb3daf
Merge branch 'main' into uuid-rfc-9562
picnixz 67e0609
Merge branch 'main' into uuid-rfc-9562
picnixz 57d1826
Merge branch 'main' into uuid-rfc-9562
picnixz 85b6382
fixup
picnixz 20d2e05
revert `_last_timestamp` -> `_last_timestamp_v1`
picnixz 48649e5
address Victor's review
picnixz 3c231c7
time_low -> time_lo in comment
picnixz 66eb50c
DB -> database
picnixz 70872bf
remove `.. index::` directive in prevision of gh-130526
picnixz d74821c
Merge branch 'main' into uuid-rfc-9562
picnixz 242eddf
Merge branch 'main' into uuid-rfc-9562
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
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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2024-06-17-17-31-27.gh-issue-89083.nW00Yq.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add :func:`uuid.uuid6` for generating UUIDv6 objects as specified in | ||
:rfc:`9562`. Patch by Bénédikt Tran. |
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.