Did I find the right examples for you? yes no

All Samples(18458)  |  Call(17681)  |  Derive(777)  |  Import(0)
Mapping key not found.

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/table.py   modern-python-example(Download)
            self.sort_by_column_index(col_index, method)
        except ValueError:
            raise KeyError("Col (%s) not found in table" % (col_id))
 
 
            row_index = self.row_names.index(row_id)
        except ValueError:
            raise KeyError("Row (%s) not found in table" % (row_id))
        else:
            try:
                col_index = self.col_names.index(col_id)
                self.data[row_index][col_index] = data
            except ValueError:
                raise KeyError("Column (%s) not found in table" % (col_id))
            self.set_row(row_index, row_data)
        except ValueError:
            raise KeyError('Row (%s) not found in table' % (row_id))
 
 
            self.delete_row(row_index)
        except ValueError:
            raise KeyError('Row (%s) not found in table' % (row_id))
 
 

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/oauth/oauth_on_appengine/appengine_utilities/sessions.py   oh-mainline(Download)
                return pickle.loads(data.content)
            else:
                raise KeyError(str(keyname))
        raise KeyError(str(keyname))
 
            print self.output_cookie.output()
        if bad_key:
            raise KeyError(str(keyname))
        if keyname in self.cache:
            del self.cache[keyname]

src/d/j/django-admin-report-HEAD/example/lib/reportlab/lib/styles.py   django-admin-report(Download)
                return self.byName[key]
            except KeyError:
                raise KeyError("Style '%s' not found in stylesheet" % key)
 
    def get(self,key,default=_stylesheet1_undefined):
    def add(self, style, alias=None):
        key = style.name
        if key in self.byName:
            raise KeyError("Style '%s' already defined in stylesheet" % key)
        if key in self.byAlias:
            raise KeyError("Style name '%s' is already an alias in stylesheet" % key)
 
        if alias:
            if alias in self.byName:
                raise KeyError("Style '%s' already defined in stylesheet" % alias)
                raise KeyError("Style '%s' already defined in stylesheet" % alias)
            if alias in self.byAlias:
                raise KeyError("Alias name '%s' is already an alias in stylesheet" % alias)
        #passed all tests?  OK, add it
        self.byName[key] = style

src/w/e/webapp2_example-HEAD/lib/webob/multidict.py   webapp2_example(Download)
    def __getitem__(self, key):
        for k, v in reversed(self._items):
            if k == key:
                return v
        raise KeyError(key)
        v = self.getall(key)
        if not v:
            raise KeyError('Key not found: %r' % key)
        if len(v) > 1:
            raise KeyError('Multiple values match %r: %r' % (key, v))
                found = True
        if not found:
            raise KeyError(key)
 
    def __contains__(self, key):
            return args[0]
        else:
            raise KeyError(key)
 
    def popitem(self):

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/pylint/pyreverse/diagrams.py   modern-python-example(Download)
            if rel.from_object is from_object:
                return rel
        raise KeyError(relation_type)
 
    def get_attrs(self, node):
            if klass.node.name == name:
                return klass
        raise KeyError(name)
 
    def extract_relationships(self):
            if mod.node.name == name:
                return mod
        raise KeyError(name)
 
    def get_module(self, name, node):
            if mod_name == "%s.%s" % (package.rsplit('.', 1)[0], name):
                return mod
        raise KeyError(name)
 
    def add_from_depend(self, node, from_module):

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/config.py   webapp2_example(Download)
            return dict.__getitem__(self, module)
        except KeyError:
            raise KeyError('Module %r is not configured.' % module)
 
    def __setitem__(self, module, values):
    def __getitem__(self, key):
        try:
            value = dict.__getitem__(self, key)
        except KeyError:
            raise KeyError('Module %r does not have the config key %r' %
                (self.module, key))
 
        if value is REQUIRED_VALUE:
            raise KeyError('Module %r requires the config key %r to be '
 
        if value is REQUIRED_VALUE:
            raise KeyError('Module %r requires the config key %r to be '
                'set.' % (self.module, key))
 

src/p/y/Pyro4-4.25/examples/banks/banks.py   Pyro4(Download)
    def deleteAccount(self, name):
        try:
            del self.accounts[name]
        except KeyError:
            raise KeyError('unknown account')
    def deposit(self, name, amount):
        try:
            return self.accounts[name].deposit(amount)
        except KeyError:
            raise KeyError('unknown account')
    def withdraw(self, name, amount):
        try:
            return self.accounts[name].withdraw(amount)
        except KeyError:
            raise KeyError('unknown account')
    def balance(self, name):
        try:
            return self.accounts[name].balance()
        except KeyError:
            raise KeyError('unknown account')

src/o/t/ottwatch-HEAD/lib/gdata/samples/oauth/oauth_on_appengine/appengine_utilities/sessions.py   ottwatch(Download)
                return pickle.loads(data.content)
            else:
                raise KeyError(str(keyname))
        raise KeyError(str(keyname))
 
            print self.output_cookie.output()
        if bad_key:
            raise KeyError(str(keyname))
        if keyname in self.cache:
            del self.cache[keyname]

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/appengine_utilities/sessions.py   ottwatch(Download)
 
            else:
                raise KeyError(unicode(keyname))
        raise KeyError(unicode(keyname))
 
            print self.output_cookie.output()
        if bad_key:
            raise KeyError(unicode(keyname))
        if keyname in self.cache:
            del self.cache[keyname]

src/o/h/oh-mainline-HEAD/vendor/packages/django-celery/examples/demoproject/demoapp/tasks.py   oh-mainline(Download)
def raisetask():
    raise KeyError("foo")
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next