On Tue, Nov 2, 2010 at 2:48 AM, Vitja Makarov <[email protected]> wrote: > 2010/11/2 Vitja Makarov <[email protected]>: >> ps: >> >> with my patch I got: >> failures=29, errors=4 >> > > First I tried to create method with NULL > PyMethod_New(__pyx_t_2, 0, NULL); > > But that doesn't worked for @staticmethod that gives SIGSEGV so I turned it > into > PyMethod_New(__pyx_t_2, 0, (PyObject *) &PyBaseObject_Type); > > But that doesn't work for simple classes, only for object based...
This is the issue that Greg Ewing was mentioning--you can't make a method until you have a class. You'll have to make (binding) function objects, which get turned into methods at class creation time. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
