8000 bpo-41103: Resurrect the old buffer protocol. by methane · Pull Request #27437 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41103: Resurrect the old buffer protocol. #27437

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 4 commits into from
Jul 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Update Misc/stable_abi.txt and regen-stable-abi
  • Loading branch information
methane committed Jul 29, 2021
commit e76c47fcd6a952e1dd92b4d091180b79e00b4670
4 changes: 4 additions & 0 deletions Doc/data/stable_abi.dat
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ function,PyOS_strtoul,3.2,
function,PyOS_vsnprintf,3.2,
type,PyObject,3.2,
function,PyObject_ASCII,3.2,
function,PyObject_AsCharBuffer,3.2,
function,PyObject_AsFileDescriptor,3.2,
function,PyObject_AsReadBuffer,3.2,
function,PyObject_AsWriteBuffer,3.2,
function,PyObject_Bytes,3.2,
function,PyObject_Call,3.2,
function,PyObject_CallFunction,3.2,
Expand All @@ -472,6 +475,7 @@ function,PyObject_CallMethodObjArgs,3.2,
function,PyObject_CallNoArgs,3.10,
function,PyObject_CallObject,3.2,
function,PyObject_Calloc,3.7,
function,PyObject_CheckReadBuffer,3.2,
function,PyObject_ClearWeakRefs,3.2,
function,PyObject_DelItem,3.2,
function,PyObject_DelItemString,3.2,
Expand Down
11 changes: 11 additions & 0 deletions Misc/stable_abi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,17 @@ function _Py_VaBuildValue_SizeT
added 3.2
abi_only

# Old buffer protocol support (deprecated)

function PyObject_AsCharBuffer
added 3.2
function PyObject_AsReadBuffer
added 3.2
function PyObject_AsWriteBuffer
added 3.2
function PyObject_CheckReadBuffer
added 3.2

# Flags are implicitly part of the ABI:

const Py_TPFLAGS_DEFAULT
Expand Down
4 changes: 4 additions & 0 deletions PC/python3dll.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,11 @@ EXPORT_FUNC(PyNumber_Subtract)
EXPORT_FUNC(PyNumber_ToBase)
EXPORT_FUNC(PyNumber_TrueDivide)
EXPORT_FUNC(PyNumber_Xor)
EXPORT_FUNC(PyObject_AsCharBuffer)
EXPORT_FUNC(PyObject_ASCII)
EXPORT_FUNC(PyObject_AsFileDescriptor)
EXPORT_FUNC(PyObject_AsReadBuffer)
EXPORT_FUNC(PyObject_AsWriteBuffer)
EXPORT_FUNC(PyObject_Bytes)
EXPORT_FUNC(PyObject_Call)
EXPORT_FUNC(PyObject_CallFunction)
Expand All @@ -424,6 +427,7 @@ EXPORT_FUNC(PyObject_CallMethodObjArgs)
EXPORT_FUNC(PyObject_CallNoArgs)
EXPORT_FUNC(PyObject_CallObject)
EXPORT_FUNC(PyObject_Calloc)
EXPORT_FUNC(PyObject_CheckReadBuffer)
EXPORT_FUNC(PyObject_ClearWeakRefs)
EXPORT_FUNC(PyObject_DelItem)
EXPORT_FUNC(PyObject_DelItemString)
Expand Down
0