Data.save¶
- Data.save(filename=None, as_loaded=None, filetype=False, **kwargs)[source]¶
Save a string representation of the current self object into the file ‘filename’.
- Parameters:
self (Data) – Data object to work with if not being used as a bound method.
- Keyword Arguments:
filename (string, bool or None) – Filename to save data as, if this is None then the current filename for the object is used. If this is not set, then then a file dialog is used. If filename is False then a file dialog is forced.
as_loaded (bool,str) – If True, then the Loaded as key is inspected to see what the original class of the self was and then this class’ save method is used to save the data. If a str then the keyword value is interpreted as the name of a subclass of the the current self.
filetype (bool) – Fallback is as_loaded is not provided.
**kwargs – Other keyword arguments are ignored.
- Returns:
self – The current
selfobject