diff --git a/Doc/library/uuid.rst b/Doc/library/uuid.rst index 866ecaa1d19ea8a..8e524a739209214 100644 --- a/Doc/library/uuid.rst +++ b/Doc/library/uuid.rst @@ -288,23 +288,24 @@ of the :attr:`~UUID.variant` attribute: Reserved for future definition. + The :mod:`uuid` module defines the special Nil and Max UUID values: -.. data:: NIL +.. const:: 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>`. - .. versionadded:: 3.14 + .. versionadded:: next -.. data:: MAX +.. const:: 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>`. - .. versionadded:: 3.14 + .. versionadded:: next .. seealso:: @@ -406,6 +407,7 @@ Here are some examples of typical usage of the :mod:`uuid` module:: >>> uuid.MAX UUID('ffffffff-ffff-ffff-ffff-ffffffffffff') + .. _uuid-cli-example: Command-Line Example diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index f0bf52f613920eb..e17b686a5c733bf 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -665,9 +665,10 @@ uuid in :rfc:`9562`. (Contributed by Bénédikt Tran in :gh:`89083`.) -* :data:`uuid.NIL` and :data:`uuid.MAX` are now available to represent the Nil - and Max UUID formats as defined by :rfc:`9562`. (Contributed by Nick Pope in - :gh:`128427`.) +* :const:`uuid.NIL` and :const:`uuid.MAX` are now available to represent the + Nil and Max UUID formats as defined by :rfc:`9562`. + (Contributed by Nick Pope in :gh:`128427`.) + zipinfo ------- diff --git a/Misc/NEWS.d/next/Library/2025-01-02-20-34-04.gh-issue-128427.onPoQZ.rst b/Misc/NEWS.d/next/Library/2025-01-02-20-34-04.gh-issue-128427.onPoQZ.rst index 7ed7b72518f589a..54cae43702ded78 100644 --- a/Misc/NEWS.d/next/Library/2025-01-02-20-34-04.gh-issue-128427.onPoQZ.rst +++ b/Misc/NEWS.d/next/Library/2025-01-02-20-34-04.gh-issue-128427.onPoQZ.rst @@ -1,2 +1,2 @@ -:data:`uuid.NIL` and :data:`uuid.MAX` are now available to represent the Nil +:const:`uuid.NIL` and :const:`uuid.MAX` are now available to represent the Nil and Max UUID formats as defined by :rfc:`9562`.