Skip to content

Doc: Clarify UUID bytes attributes - #149972

Merged
eendebakpt merged 1 commit into
python:mainfrom
savagemechanic:docs-uuid-bytes-wording
Sep 19, 2026
Merged

eendebakpt merged 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).

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Sep 17, 2026
@eendebakpt eendebakpt added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 19, 2026
@eendebakpt
eendebakpt merged commit aa54070 into python:main Sep 19, 2026
68 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @savagemechanic for the PR, and @eendebakpt for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157818 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Sep 19, 2026
@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157819 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 19, 2026
@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157820 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants