[issue2396] Backport memoryview object to Python 2.7

Antoine Pitrou report at bugs.python.org
Sat Jan 10 18:38:19 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Here is a patch. Some remarks:
- I had to disable a few tests in test_memoryview.py, mainly because
array.array does not support the new buffer API in 2.x
- I kept the PyBytes_* aliases in memoryobject.c rather than using the
PyString_* equivalents. Is it ok?
- I didn't update the Windows build files, I suppose someone else can do
it (I'm unable to do it myself)
- I'm not sure about the tp_flags juggling in typeobject.c, my additions
may be redundant (although very lightweight)

----------
assignee:  -> pitrou
keywords: +patch
stage:  -> patch review
title: Backport memoryview object to Python 2.6 -> Backport memoryview object to Python 2.7
Added file: http://bugs.python.org/file12676/memview-trunk.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2396>
_______________________________________


More information about the Python-bugs-list mailing list