Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/u/l/Uliweb-0.2.6/uliweb/lib/weto/session.py   Uliweb(Download)
    from md5 import md5
 
from backends.base import KeyError
 
class SessionException(Exception):pass
    def __getitem__(self, name):
        v = dict.get(self, name, NValue)
        if v is NValue:
            raise KeyError("Key %s can not be found" % name)
 
            else:
                del self[name]
                raise KeyError("Key %s can not be found" % name)
        else:
            return v

src/u/l/uliweb-HEAD/uliweb/lib/weto/session.py   uliweb(Download)
    from md5 import md5
 
from backends.base import KeyError
 
class SessionException(Exception):pass
    def __getitem__(self, name):
        v = dict.get(self, name, NValue)
        if v is NValue:
            raise KeyError("Key %s can not be found" % name)
 
            else:
                del self[name]
                raise KeyError("Key %s can not be found" % name)
        else:
            return v

src/u/l/Uliweb-0.2.6/uliweb/lib/weto/cache.py   Uliweb(Download)
#########################################################################
import cPickle
from backends.base import KeyError
import json
 

src/u/l/uliweb-HEAD/uliweb/lib/weto/cache.py   uliweb(Download)
#########################################################################
import cPickle
from backends.base import KeyError
import json