Utility functions for GAP#
- exception sage.libs.gap.util.GAPError#
Bases:
ValueError
Exceptions raised by the GAP library
- 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 '/home/vbraun/opt/sage-5.3.rc0/local/gap/latest'
- sage.libs.gap.util.get_owned_objects()#
Helper to access the refcount dictionary from Python code