[Numpy-discussion] numpy 2.0, what else to do?
Dag Sverre Seljebotn
Sun Feb 14 06:07:47 CST 2010
Dag Sverre Seljebotn wrote:
> Pauli Virtanen wrote:
>> We will most likely have experimental py3 support in 2.0.
>> If you, or someone else wishes to help bringing 2.0 to fully work
>> with Py3, now is a very good time to step up.
>> Finally, try to write some PEP 3118 using code, and check how it
>> works. (You can use python >= 2.6 for this if you get numpy from the
>> py3k branch.)
> At least parts of this last point should be easily done with all the
> code out there using Cython and NumPy.
> If PEP 3118 is enabled in NumPy's ndarray, then Cython's
> special-casing of NumPy should magically disappear (this can be
> checked by putting a "raise AssertionError()" statement in
> __getbuffer__ in Cython/Includes/numpy.pxd).
> Then, one can recompile any code using Cython and NumPy to at least
> verify most basic functionality (access of basic types, structs/record
> arrays, and different striding and ordering).
Even recompilation is only needed in order to raise that assertion
error, I think. So once it is tested that things work, NumPy's PEP 3118
support should be used instead of emulation by already compiled Cython
Of course, that's never actually been tested.
More information about the NumPy-Discussion