Skip to content

Doc: Clarify UUID bytes attributes#149972

Open
savagemechanic wants to merge 1 commit into
python:mainfrom
savagemechanic:docs-uuid-bytes-wording
Open

Doc: Clarify UUID bytes attributes#149972
savagemechanic wants to merge 1 commit into
python:mainfrom
savagemechanic:docs-uuid-bytes-wording

Conversation

@savagemechanic

@savagemechanic savagemechanic commented May 18, 2026

Copy link
Copy Markdown
Contributor

Docs-only change.

Clarifies UUID.bytes and UUID.bytes_le wording by describing those values as 16-byte bytes objects rather than byte strings.

Local checks:

make -C Doc check SPHINXOPTS='-W --keep-going'
python3 -m py_compile Lib/uuid.py

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32729266 | 📁 Comparing f27a993 against main (acefff9)

  🔍 Preview build  

1 file changed
± library/uuid.html

@eendebakpt eendebakpt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, this is more precise. In particular the changed example in the docstring (the old UUID(bytes='\x12\x34\x56\x78'*4) would fail with an error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants