Hi all,
I have been making a C extension to Python recently. This extension has a function that takes a 3D array (as made by pygame.surfarra y.pixels3d), is going to do operations on this array, and then return it.
My problem is, that the most basic form of this function is throwing a segmentation fault after 58 calls from my program. The input is always a 3D array of integers, 1st dimension of size 70, second of size...
Search Result
Collapse
2 results in 0.0015 seconds.
Keywords
Members
Tags
-
Return from C extension throws segmentation fault
-
How to get PyTypeObject from PyObject?
I want to check the type of an object, right now I am doing
strcmp( object->ob_type->tp_name, "MyClass")
Which seems slow, is there a way I can find the pointer to the global
PyTypeObject for MyClass, and then just call PyObject_TypeCh eck?
Thanks...