Uh oh!
There was an error while loading. Please reload this page.
gh-128427: Add uuid.NIL and uuid.MAX - #128429
Conversation
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.
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.
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.
By the way, avoid force-pushing in the future as it makes reviews harder; we eventually squash commits and write our own commit message (force-pushing is accepted in some cases only but those are quite rare (like fixing up a really wrong commit that should not be seen at all, or changing the committer's email/name to due CLA reasons)). |
Uh oh!
There was an error while loading. Please reload this page.
picnixz
left a comment
There was a problem hiding this comment.
I forgot about the version and variant fields which I don't know what to do with.
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.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
picnixz
left a comment
There was a problem hiding this comment.
Just two nits and LGTM once a core dev allows it.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hugovk
left a comment
There was a problem hiding this comment.
Thanks, just a couple of docs suggestions.
| .. data:: NIL | ||
| A special form of UUID that is specified to have all 128 bits set to zero | ||
| according to :rfc:`RFC 9562, §5.9 <9562#section-5.9>`. |
There was a problem hiding this comment.
Linking directly to the section is helpful, perhaps we only need to mention the RFC number here? If so, we could update the same thing for uuid8 above.
| according to :rfc:`RFC 9562, §5.9 <9562#section-5.9>`. | |
| according to :rfc:`RFC 9562 <9562#section-5.9>`. |
| .. data:: MAX | ||
| A special form of UUID that is specified to have all 128 bits set to one | ||
| according to :rfc:`RFC 9562, §5.10 <9562#section-5.10>`. |
There was a problem hiding this comment.
| according to :rfc:`RFC 9562, §5.10 <9562#section-5.10>`. | |
| according to :rfc:`RFC 9562 <9562#section-5.10>`. |
encukou
left a comment
There was a problem hiding this comment.
I think it works better with the section number in the text.
hugovk
commented
Jan 27, 2025
Sure, let's merge. @ngnpope, thank you your contribution! |
Adds constants for Nil and Max UUID formats as per RFC 9562.
📚 Documentation preview 📚: https://cpython-previews--128429.org.readthedocs.build/