diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-07-29 19:46:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 12:46:47 +0200 |
commit | ce5e1a6809b714eb0383219190a076d9f883e008 (patch) | |
tree | a28ab28d295952746ff8bfe71b26e56b1d4acc95 /PC | |
parent | d542742128b634264d5b6796297613975211b43b (diff) | |
download | cpython-git-ce5e1a6809b714eb0383219190a076d9f883e008.tar.gz |
bpo-41103: Resurrect the old buffer protocol. (GH-27437)
Revert "bpo-41103: Remove old buffer protocol support (#21117)"
This reverts commit 6f8a6ee59cb7f99f68df8ee9c3e8c8cf19af3eed.
Diffstat (limited to 'PC')
-rwxr-xr-x | PC/python3dll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c index 1659e9fc64..e0a78294a6 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -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) @@ -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) |