Skip to content
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

Support Nil and Max UUID formats from RFC 9562 #128427

Open
ngnpope opened this issue Jan 2, 2025 · 1 comment
Open

Support Nil and Max UUID formats from RFC 9562 #128427

ngnpope opened this issue Jan 2, 2025 · 1 comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ngnpope
Copy link
Contributor

ngnpope commented Jan 2, 2025

Feature or enhancement

Proposal:

RFC 9562 defines Nil and Max UUID formats:

I've often had a need to use these as placeholders, sentinels or dummy values and it would be nice to be able to write uuid.NIL and uuid.MAX instead of uuid.UUID(int=0) and uuid.UUID(int=2 ** 128 - 1) every time I need to reach for them.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

These have been referred to in #89083 (comment) and #89083 (comment).

Linked PRs

@ngnpope ngnpope added the type-feature A feature request or enhancement label Jan 2, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label Jan 2, 2025
@picnixz
Copy link
Contributor

picnixz commented Jan 2, 2025

Thanks for this one. I planned to add it at some point but it's good that someone else did it as it's an easy feature to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants