2.7 Object persistence

Module: sage.misc.persist

You can load and save most SAGE object to disk using the load and save member functions and commands.

Note: It is impossible to save certain SAGE objects to disk. For example, if $ x$ is a MAGMA object, i.e., a wrapper around an object that is defined in MAGMA, there is no way to save $ x$ it to disk, since MAGMA doesn't support saving of individual objects to disk.

Module-level Functions

db( name)

Load object with given name from the SAGE database. Use x.db(name) or db_save(x, name) to save objects to the database.

The database directory is $HOME/.sage/db.

db_save( x, [name=None])

Save x to the SAGE database.

The database directory is $HOME/.sage/db.

load_sage_element( cls, parent, dic_pic)

load_sage_object( cls, dic)

x_load_sage_element( parent, cls, dic)

xx_load_sage_element( X, parent)

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