You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
anduuid.MAX
instead ofuuid.UUID(int=0)
anduuid.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
uuid.NIL
anduuid.MAX
#128429The text was updated successfully, but these errors were encountered: