Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95b1ba6

Browse files
author
Stefan Krah
committed
Add PyMemoryView_FromMemory() to whatsnew/3.3.
1 parent 0a971f1 commit 95b1ba6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/memoryview.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ any other object.
2525
Create a memoryview object using *mem* as the underlying buffer.
2626
*flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
2727
28+
.. versionadded:: 3.3
29+
2830
.. c:function:: PyObject *PyMemoryView_FromBuffer(Py_buffer *view)
2931
3032
Create a memoryview object wrapping the given buffer structure *view*.

Doc/whatsnew/3.3.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,10 @@ Build and C API Changes
906906

907907
Changes to Python's build process and to the C API include:
908908

909+
* New :pep:`3118` related function:
910+
911+
* :c:func:`PyMemoryView_FromMemory`
912+
909913
* The :pep:`393` added new Unicode types, macros and functions:
910914

911915
* High-level API:

0 commit comments

Comments
 (0)