cython/cython — pull request #171 by bfroehle (2012-12-19 20:31:26+00:00)
Title: Fix __Pyx_ImportType if #Py_LIMITED_API is defined.

I was recently trying to use [mpi4py](https://code.google.com/p/mpi4py/) in a hand-written Python 3 extension module with `#define Py_LIMITED_API`. One side effect of the limited API is that `PyTypeObject` becomes an opaque type.

This means that our `__Pyx_ImportType` cannot just introspect `tp_basicsize`.

I've updated the code to extract the `tp_basicsize` value from the `__basicsize__` attribute which should be available instead.

I'd appreciate comments on the code style here... I'm not sure how to write these sorts of calls most efficiently yet.