Utility functions for libGAP

class sage.libs.gap.util.ObjWrapper

Bases: object

Wrapper for GAP master pointers

EXAMPLES:

sage: from sage.libs.gap.util import ObjWrapper
sage: x = ObjWrapper()
sage: y = ObjWrapper()
sage: x == y
True
sage.libs.gap.util.gap_root()

Find the location of the GAP root install which is stored in the gap startup script.

EXAMPLES:

sage: from sage.libs.gap.util import gap_root
sage: gap_root()   # random output
'/usr/lib/gap'
sage.libs.gap.util.get_owned_objects()

Helper to access the refcount dictionary from Python code