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