Skip to content

gh-98680: Add PyBUF_* constants to the Limited API listing #100018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
``PyBUF_*`` constants were marked as part of Limited API of Python 3.11+.
These were available in 3.11.0 with :c:macro:`Py_LIMITED_API` defined for
3.11, and are necessary to use the buffer API.
44 changes: 44 additions & 0 deletions Misc/stable_abi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2271,6 +2271,50 @@
[function.PyMemoryView_FromBuffer]
added = '3.11'

# Constants for Py_buffer API added to this list in Python 3.11.1 (https://github.com/python/cpython/issues/98680)
# (they were available with 3.11.0)
[const.PyBUF_MAX_NDIM]
added = '3.11'
[const.PyBUF_SIMPLE]
added = '3.11'
[const.PyBUF_WRITABLE]
added = '3.11'
[const.PyBUF_FORMAT]
added = '3.11'
[const.PyBUF_ND]
added = '3.11'
[const.PyBUF_STRIDES]
added = '3.11'
[const.PyBUF_C_CONTIGUOUS]
added = '3.11'
[const.PyBUF_F_CONTIGUOUS]
added = '3.11'
[const.PyBUF_ANY_CONTIGUOUS]
added = '3.11'
[const.PyBUF_INDIRECT]
added = '3.11'
[const.PyBUF_CONTIG]
added = '3.11'
[const.PyBUF_CONTIG_RO]
added = '3.11'
[const.PyBUF_STRIDED]
added = '3.11'
[const.PyBUF_STRIDED_RO]
added = '3.11'
[const.PyBUF_RECORDS]
added = '3.11'
[const.PyBUF_RECORDS_RO]
added = '3.11'
[const.PyBUF_FULL]
added = '3.11'
[const.PyBUF_FULL_RO]
added = '3.11'
[const.PyBUF_READ]
added = '3.11'
[const.PyBUF_WRITE]
added = '3.11'


# (Detailed comments aren't really needed for further entries: from here on
# we can use version control logs.)

Expand Down