14.3.3 Saving and loading objects

Saving and loading GAP objects (using the dumps method, etc.) is not supported, since the output string representation of Gap objects is sometimes not valid input to GAP. Creating classes that wrap GAP objects is supported, via simply defining the a _gap_init_ member function that returns a string that when evaluated in GAP constructs the object. See groups/permutation_group.py for a nontrivial example of this.

See About this document... for information on suggesting changes.