Utility functions for GAP - C/C++ Library Interfaces

Skip to content
Back to top
View this page
Edit this page

# 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

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

  Python

      >>> from sage.all import *
      >>> from sage.libs.gap.util import ObjWrapper
      >>> x = ObjWrapper()
      >>> y = ObjWrapper()
      >>> x == y
      True

sage.libs.gap.util.gap_sig_off()

sage.libs.gap.util.gap_sig_on()

sage.libs.gap.util.get_owned_objects()

  Helper to access the refcount dictionary from Python code