>> Will the circular references "functionspace <-> >> testfunction" be a problem for garbage collection? > > Yes. I am not familiar with the particulars here, but the circular references are only a problem if the objects have custom deleters (__del__ methods). Swig likes to generate (empty) __del__ methods, but they can be disabled by the should-have-been-default flag --noproxydel. -j. On 28 November 2012 20:03, Johan Hake