I'm not sure what the procedure for submitting patches to PyCXX is, but I wanted to bring to your attention some patches that are required to successfully build matplotlib on Python 3.x.  We currently ship our own copy of PyCXX with these patches, but we'd like to stop doing so in the future, of course.

This is to support the buffer interface:


This is to use Py_hash_t rather than long where appropriate, because sizeof(long) != sizeof(long *) on some platforms:


And lastly, and least importantly, a simple patch to suppress a compiler warning about compare_handler being defined but not used: