Skip to content

gh-139871: Add _PyByteArray_empty_string to the stable ABI - #140770

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:ba_empty_string
Closed

gh-139871: Add _PyByteArray_empty_string to the stable ABI#140770
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:ba_empty_string

Conversation

@vstinner

@vstinnervstinner commented Oct 29, 2025

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
MemberAuthor

#140128 tried to remove _PyByteArray_empty_string by mistake which would break the stable ABI. Let's put it in the stable ABI to detect if it's removed by mistake.

@encukou

Copy link
Copy Markdown
Member

It's not part of the stable ABI; it's certainly not in the Windows stable ABI DLL.
Let's not add it.

@vstinner

Copy link
Copy Markdown
MemberAuthor

Oh, it's declared in Include/cpython/bytearrayobject.h, not in Include/bytearrayobject.h, you're right.

@vstinner
vstinner deleted the ba_empty_string branch October 30, 2025 09:29
Sign up for freeto 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

@vstinner@encukou