On May 9, 2008, at 2:42 AM, Daniele Pianu wrote: [...] > Is there a way to solve the problem without importing anything from > Python.h? No, unless you want to cache of the func/data manually somewhere else. Also note that this may cause a memory leak, as the reference count will never be decremented. - Robert