Matti Picus
2016-06-04 20:58:11 UTC
Hi. This is a heads up and RFC about a pull request I am preparing for
PyArray_Scalar, within the framework of getting NumPy working properly
on PyPy. For those who don't know, the numpy HEAD builds and runs on
PyPy2.7 HEAD (otherwise known as nightly default). However there are a
number of test failures, some are caused by (ab)use of memcpy on c-level
pointers obtained from Py*_FromString().
I am currently rewriting PyArray_Scalar to not use memcpy, and wondering
how deep of a refactoring would be acceptable by the maintainers in a
single pull request? Should I just stick to small changes to eliminate
the two calls to memcpy, or clean up and restructure the entire function
around a more switch(type_num) programming style?
Thanks,
Matti
PyArray_Scalar, within the framework of getting NumPy working properly
on PyPy. For those who don't know, the numpy HEAD builds and runs on
PyPy2.7 HEAD (otherwise known as nightly default). However there are a
number of test failures, some are caused by (ab)use of memcpy on c-level
pointers obtained from Py*_FromString().
I am currently rewriting PyArray_Scalar to not use memcpy, and wondering
how deep of a refactoring would be acceptable by the maintainers in a
single pull request? Should I just stick to small changes to eliminate
the two calls to memcpy, or clean up and restructure the entire function
around a more switch(type_num) programming style?
Thanks,
Matti