Memory management for Gens on the PARI stack or the heap¶
- class cypari2.stack.DetachGen¶
Destroy a
Gen
but keep theGEN
which is inside it.The typical usage is as follows:
Creates the
DetachGen
object from a :class`Gen`.Removes all other references to that
Gen
.Call the
detach
method to retrieve theGEN
(or a copy of it if the original was not on the stack).