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.get_owned_objects()#

Helper to access the refcount dictionary from Python code