Skip to content

Support Nil and Max UUID formats from RFC 9562ย #128427

Open
@ngnpope

Description

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

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions