diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:09:45 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:09:45 +0000 |
commit | f553be91f4905fee9bfa3760791ba49c721cef90 (patch) | |
tree | a6e6758fdfa5e8cf5f6d8599f7c6c97a1bdbe922 /numpy/lib/utils.py | |
parent | d820db296b9d6b281dd6f79c666e1596141b9b4a (diff) | |
download | numpy-f553be91f4905fee9bfa3760791ba49c721cef90.tar.gz |
ENH: implement PEP 3118 buffer consumer on Py2.6, adding a simple Memoryview object
To use PEP 3118 buffers as ndarray bases, we need to have a way to
release the buffers on garbage collection. The easiest way to do this is
to use a Memoryview object -- but they are not available on Python 2.6.
Hence, we implement a minimal memory view object that only handles the
garbage collection, and use it on Python 2.6. It also implements the
new buffer protocol, to allow testing the functionality.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions