Commit bd8a6922 by Gael varoquaux

Rmks

parent 4b9ae426
......@@ -10,10 +10,11 @@ The meat of the example is that the data is allocated in C, but exposed
in Python without a copy using the `PyArray_SimpleNewFromData` numpy
function in the Cython file `cython_wrapper.pyx`.
Note that the ownership of the memory is then handed off to the Python
VM, and there is no control of when Python will deallocate the memory. If
the memory is still being used by the C code, please refer to the
following blog post by Travis Oliphant:
The purpose of the `ArrayWrapper` object, is to be garbage-collected by
Python when the ndarray Python object disappear. The memory is then
freed. Note that there is no control of when Python will deallocate the
memory. If the memory is still being used by the C code, please refer to
the following blog post by Travis Oliphant:
http://blog.enthought.com/python/numpy-arrays-with-pre-allocated-memory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment