<div class="gmail_quote">On Fri, May 13, 2011 at 15:25, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":6at"> Python could be even harder than<br>
C++, because of the GC that can start running at any time.</div></blockquote></div><br><div>Is it _ever_ acceptable to let the garbage collector manage destruction of PETSc objects? It seems to me that you can't ever take this chance with objects that may be parallel. This includes objects that may be destroyed explicitly when a 'with' block exits or a 'finally' block is reached due to an exception that is not collective. Under what circumstances does the GC running affect PETSc objects in any way?</div>