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

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

Conversation

@vstinner

@vstinner vstinner commented Oct 29, 2025 •

Copy link
Copy Markdown
Member
@vstinner

Copy link
Copy Markdown
Member Author

#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

encukou commented Oct 30, 2025

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
Member Author

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

@vstinner vstinner closed this Oct 30, 2025
@vstinner
vstinner deleted the ba_empty_string branch October 30, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants