Debug this Cython assertion. NumPy needs Cython to generate mtrand.c from mtrand.pyx and we can't just use the regular Cython because we need to apply Marius' patch(if we don't, mtrand.c won't compile.)
Need to access the fields of PyStringObject directly and do sizeof(PyStringScalarObject) which is just a typedef for PyStringObject, currently just forward declared. More specifically, fields include ob_shash and ob_sstate.
Descriptors
NumPy looks at the PyDescr_ objects in descrobject.h
Compiler Crash
Why is this crashing the compiler?(ufunc_object.c)
Things needed to get NumPy to compile
Cython
PyStringObject and PyStringScalarObject
Descriptors
Compiler Crash
fail:
// Causes compiler error wtf
for (i = ufunc->nin; i < ufunc->nargs; i++) {
Py_XDECREF(mps[i])
}
return NULL;
}
Misc