On Saturday, November 24, 2018 at 11:47:54 PM UTC-8, Martin R wrote: > > Yes, but should't that be released once the poset is thrown away? > > The following code:
import gc from collections import Counter gc.collect() pre={id(c) for c in gc.get_objects()} for P in posets(7): Q = P.with_bounds() x=Q.moebius_function(Q.bottom(), Q.top()) del P,Q,x gc.collect() gc.collect() gc.collect() post=Counter(type(o) for o in gc.get_objects() if id(o) not in pre) sorted(post.iteritems(),key=lambda t: t[1]) doesn't particularly find much on the heap (especially not the second time you run it), so if something leaks, then it's not python. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.