> (I'm not on the SAGE list so not dual-posting) > > > A few of us (ipython and mpi4py devs) are wondering what the > > best/safest way of allocating dynamic memory in a local scope > > (method/function) is when using cython. An example would be if you > > need an array of c ints that is locally scoped. > > > Won't try-finally work here?
I don't see why it wouldn't. But, typical usages of sage_malloc are not protected in that way. > Dag Sverre > > > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev > _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
