Package persistent :: Class Persistent
[show private | hide private]
[frames | no frames]

Type Persistent

object --+
         |
        Persistent

Known Subclasses:
Persistent

Method Summary
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getstate__(...)
Get the object serialization state
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setstate__(...)
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state.
Inherited from object: __init__, __hash__, __reduce_ex__, __repr__, __str__

Method Details

__delattr__(...)

x.__delattr__('name') <==> del x.name
Overrides:
__builtin__.object.__delattr__

__getattribute__(...)

x.__getattribute__('name') <==> x.name
Overrides:
__builtin__.object.__getattribute__

__getstate__(...)

Get the object serialization state

If the object has no assigned slots and has no instance dictionary, then None is returned.

If the object has no assigned slots and has an instance dictionary, then the a copy of the instance dictionary is returned. The copy has any items with names starting with '_v_' or '_p_' ommitted.

If the object has assigned slots, then a two-element tuple is returned. The first element is either None or a copy of the instance dictionary, as described above. The second element is a dictionary with items for each of the assigned slots.

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__reduce__(...)

Reduce an object to contituent parts for serialization
Overrides:
__builtin__.object.__reduce__

__setattr__(...)

x.__setattr__('name', value) <==> x.name = value
Overrides:
__builtin__.object.__setattr__

__setstate__(...)

Set the object serialization state

The state should be in one of 3 forms:

- None

  Ignored

- A dictionary

  In this case, the object's instance dictionary will be cleared and 
  updated with the new state.

- A two-tuple with a string as the first element. 

  In this case, the method named by the string in the first element will be
  called with the second element.

  This form supports migration of data formats.

- A two-tuple with None or a Dictionary as the first element and
  with a dictionary as the second element.

  If the first element is not None, then the object's instance dictionary 
  will be cleared and updated with the value.

  The items in the second element will be assigned as attributes.

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net