Commit 73eb4a8d authored by Marius Wachtler's avatar Marius Wachtler Committed by GitHub

Merge pull request #1267 from Daetalus/scipy_fixing_3_nexedi

Some scipy related fixing.
parents 255e7875 76b2870f
......@@ -32,8 +32,7 @@ PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *) PYSTON_NOEXCEPT;
PyAPI_FUNC(BORROWED(PyObject *)) PyCFunction_GetSelf(PyObject *) PYSTON_NOEXCEPT;
PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *) PYSTON_NOEXCEPT;
// Pyston change: changed to function calls
#if 0
/* Macros for direct access to these values. Type checks are *not*
done, so use with care. */
#define PyCFunction_GET_FUNCTION(func) \
......@@ -42,13 +41,7 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *) PYSTON_NOEXCEPT;
(((PyCFunctionObject *)func) -> m_self)
#define PyCFunction_GET_FLAGS(func) \
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
#endif
#define PyCFunction_GET_FUNCTION(func) \
PyCFunction_GetFunction((PyObject*)(func))
#define PyCFunction_GET_SELF(func) \
PyCFunction_GetSelf((PyObject*)(func))
#define PyCFunction_GET_FLAGS(func) \
PyCFunction_GetFlags((PyObject*)(func))
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *) PYSTON_NOEXCEPT;
struct PyMethodDef {
......
......@@ -1929,7 +1929,7 @@ static const slotdef* update_one_slot(BoxedClass* type, const slotdef* p) noexce
static BoxedString* getattribute_str = getStaticString("__getattribute__");
if (p->name_strobj == getattribute_str) {
if (descr && descr->cls == &PyWrapperDescr_Type
if (type->tp_getattr == NULL && descr && descr->cls == &PyWrapperDescr_Type
&& ((PyWrapperDescrObject*)descr)->d_wrapped == PyObject_GenericGetAttr)
descr = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment