Skip to content

[3.13] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627)#153836

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-190d2ff-3.13
Jul 17, 2026
Merged

[3.13] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627)#153836
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-190d2ff-3.13

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Normalize bytes format strings to str before using them as the cache key, so that equal str and bytes formats no longer collide and get compared.

(cherry picked from commit 190d2ff)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…pythonGH-153627)

Normalize bytes format strings to str before using them as the cache key,
so that equal str and bytes formats no longer collide and get compared.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit 190d2ff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant