Therefore, this should also leak: def get_polytope(): q = MixedIntegerLinearProgram( maximization = False, solver = 'Coin' ) w = q.new_variable(real = True, nonnegative = True) q.add_constraint( w[0] == 0 ) q.add_constraint( w[1] == 0 )
def fill_memory(n): for i in xrange(n): get_polytope() fill_memory(2000) The following does not: def get_polytope(): q = MixedIntegerLinearProgram( maximization = False, solver = 'Coin' ) w = q.new_variable(real = True, nonnegative = True) Does the following also leak ? def get_polytope(): q = MixedIntegerLinearProgram( maximization = False, solver = 'Coin' ) w = q.new_variable(real = True, nonnegative = True) q.add_constraint( w[0] == 0 ) Sébastien -- 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.