David McNab wrote: > With the Python/C API, how do i test if a given PyObject * actually > points to a real/valid python object? As opposed to being a NULL pointer? o != NULL As opposed to being a stray pointer, to garbage memory? You can't. Regards, Martin