Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
gists
/
cython-cwrapper
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bd8a6922
authored
Dec 08, 2011
by
Gael varoquaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rmks
parent
4b9ae426
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
00README.rst
+5
-4
No files found.
00README.rst
View file @
bd8a6922
...
@@ -10,10 +10,11 @@ The meat of the example is that the data is allocated in C, but exposed
...
@@ -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
in Python without a copy using the `PyArray_SimpleNewFromData` numpy
function in the Cython file `cython_wrapper.pyx`.
function in the Cython file `cython_wrapper.pyx`.
Note that the ownership of the memory is then handed off to the Python
The purpose of the `ArrayWrapper` object, is to be garbage-collected by
VM, and there is no control of when Python will deallocate the memory. If
Python when the ndarray Python object disappear. The memory is then
the memory is still being used by the C code, please refer to the
freed. Note that there is no control of when Python will deallocate the
following blog post by Travis Oliphant:
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
http://blog.enthought.com/python/numpy-arrays-with-pre-allocated-memory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment