Package topo :: Package misc :: Module util :: Class ExtraPickler
[hide private]
[frames] | no frames]

Class ExtraPickler

source code

object --+    
         |    
 Singleton --+
             |
            ExtraPickler


Provides a simple means to include arbitrary attributes from
modules when pickling.

To include a variable z of module x.y (i.e. x.y.z) in a snapshot (and have
it put back as x.y.z on loading), do:
    ExtraPickler().add( ('x.y','z') )

Instance Methods [hide private]
 
add(self, item) source code
 
__reduce_ex__(self, p)
helper for pickle
source code
 
__setstate__(self, state) source code

Inherited from Singleton: init

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from Singleton: __new__

Class Variables [hide private]
  extras = [('topo.plotting.plotgroup', 'plotgroups')]
list() -> new list list(sequence) -> new list initialized from sequence's items
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__reduce_ex__(self, p)

source code 
helper for pickle
Overrides: object.__reduce_ex__
(inherited documentation)