Utility functions for GAP#

exception sage.libs.gap.util.GAPError[source]#

Bases: ValueError

Exceptions raised by the GAP library

class sage.libs.gap.util.ObjWrapper[source]#

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
>>> from sage.all import *
>>> from sage.libs.gap.util import ObjWrapper
>>> x = ObjWrapper()
>>> y = ObjWrapper()
>>> x == y
True
sage.libs.gap.util.get_owned_objects()[source]#

Helper to access the refcount dictionary from Python code