Author: mattip <matti.pi...@gmail.com> Branch: cpyext-ext Changeset: r83680:dabbf2aa9497 Date: 2016-04-15 10:22 +0300 http://bitbucket.org/pypy/pypy/changeset/dabbf2aa9497/
Log: make fooc3 more like numpy's PyCDoubleArrType_Type diff --git a/pypy/module/cpyext/test/foo3.c b/pypy/module/cpyext/test/foo3.c --- a/pypy/module/cpyext/test/foo3.c +++ b/pypy/module/cpyext/test/foo3.c @@ -10,6 +10,8 @@ return newType; } +#define BASEFLAGS Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_CHECKTYPES + PyTypeObject footype = { PyVarObject_HEAD_INIT(NULL, 0) /*tp_name*/ "foo3.footype", @@ -30,7 +32,7 @@ /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ 0, - /*tp_flags*/ Py_TPFLAGS_DEFAULT, + /*tp_flags*/ BASEFLAGS, /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit