mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Add PyMemoryView_FromMemory() to whatsnew/3.3.
This commit is contained in:
parent
0a971f18cc
commit
95b1ba6388
2 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,8 @@ any other object.
|
|||
Create a memoryview object using *mem* as the underlying buffer.
|
||||
*flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. c:function:: PyObject *PyMemoryView_FromBuffer(Py_buffer *view)
|
||||
|
||||
Create a memoryview object wrapping the given buffer structure *view*.
|
||||
|
|
|
@ -906,6 +906,10 @@ Build and C API Changes
|
|||
|
||||
Changes to Python's build process and to the C API include:
|
||||
|
||||
* New :pep:`3118` related function:
|
||||
|
||||
* :c:func:`PyMemoryView_FromMemory`
|
||||
|
||||
* The :pep:`393` added new Unicode types, macros and functions:
|
||||
|
||||
* High-level API:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue