Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::Extensions::pickleshare::PickleShareDB::__setitem__ (   self,
  key,
  value 
)

db['key'] = 5 

Definition at line 78 of file pickleshare.py.

00078                                    :
        """ db['key'] = 5 """
        fil = self.root / key
        parent = fil.parent
        if parent and not parent.isdir():
            parent.makedirs()
        pickled = pickle.dump(value,fil.open('w'))
        try:
            self.cache[fil] = (value,fil.mtime)
        except OSError,e:
            if e.errno != 2:
                raise
    
    def hset(self, hashroot, key, value):


Generated by  Doxygen 1.6.0   Back to index