On 21/03/16 11:42, Tin Tvrtković wrote:
Thanks for the quick reply (as always).

We'll stick with the PPA.

About PyByteArray_CheckExact, any chance of it getting implemented in this next round of C-API extensions? Looking in the CPython source, it seems to be a one-line macro:

#define PyByteArray_CheckExact(self) (Py_TYPE(self) == &PyByteArray_Type)

but I admit to knowing basically nothing about this level of code. :) I figure asking here whether it can be implemented will be better than asking Cython to stop using it ;)

Cheers!

 mailing list

    > pypy-dev@python.org <mailto:pypy-dev@python.org>
    > https://mail.python.org/mailman/listinfo/pypy-dev
    >




_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
While true, that would only get you to the next step, which is that much of the functionality of PyByteArray_Type is not implemented. See for instance the functions in cpyext/stubs.py or commit 16f119c9be67 which added a failing test for PyArg_ParseTuple, s*, and ByteArrays. If we were to push the CheckExact forward, what functionality is critical for cython to completely compile your module?
Matti
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to