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

All Samples(5117)  |  Call(5117)  |  Derive(0)  |  Import(0)
L.pop([index]) -> item -- remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.

src/h/u/hunch-sample-app-HEAD/django/utils/dictconfig.py   hunch-sample-app(Download)
    def pop(self, idx=-1):
        value = list.pop(self, idx)
        result = self.configurator.convert(value)
        if value is not result:
            if type(result) in (ConvertingDict, ConvertingList,

src/w/e/web-logging-example-HEAD/logconfig/dictconfig.py   web-logging-example(Download)
    def pop(self, idx=-1):
        value = list.pop(self, idx)
        result = self.configurator.convert(value)
        if value is not result:
            if type(result) in (ConvertingDict, ConvertingList,

src/d/e/deap-1.0.1/examples/coev/coop_evol.py   deap(Download)
                    if contributions[i] < EXTINCTION_TRESHOLD:
                        species.pop(i)
                        species_index.pop(i)
                        representatives.pop(i)
 

src/p/o/poio-api-HEAD/examples/obt_ner_tagger.py   poio-api(Download)
        current_ngram.append(nodes[i])
        ngrams.append(list(current_ngram))
        current_ngram.pop(0)
        i += 1
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/db/backends/oracle/compiler.py   hunch-sample-app(Download)
                param_idx = self.query.columns.index(field.column)
                params = list(self.query.params)
                params.pop(param_idx)
                self.query.params = tuple(params)
            return ph

src/h/u/hunch-sample-app-HEAD/django/template/__init__.py   hunch-sample-app(Download)
        try:
            for arg in nondefs:
                provided.pop(0)
        except IndexError:
            # Not enough

src/b/o/Box2D-2.3b0/examples/pgu/gui/widget.py   Box2D(Download)
                    args.append(magic[name])
                elif len(values):
                    args.append(values.pop(0))
                else:
                    break

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/configuration.py   modern-python-example(Download)
        optname, optdict = options[i]
        if optname in alloptions:
            options.pop(i)
            alloptions[optname].update(optdict)
        else:

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/Random/random.py   modern-python-example(Download)
        # chosen.
        for i in xrange(len(x)):
            x[i] = items.pop(self.randrange(len(items)))
 
    def sample(self, population, k):

src/k/i/Kivy-1.8.0/examples/demo/camera_puzzle.py   Kivy(Download)
        childindex = 0
        while indices:
            index = indices.pop(randint(0, len(indices) - 1))
            x = bs * (index % int(tw / bs))
            y = bs * int(index / int(tw / bs))

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