Did I find the right examples for you? yes no

All Samples(16)  |  Call(9)  |  Derive(0)  |  Import(7)
Make all elements in a list unique.

        def uniq(aList):
    "Make all elements in a list unique."
    
    set = {}
    return [set.setdefault(e, e) for e in aList if e not in set]
        


src/c/o/congress-HEAD/tasks/votes.py   congress(Download)
            vote_ids.append(vote_id)
 
    return utils.uniq(vote_ids)
 
 

src/c/o/congress-HEAD/tasks/bills.py   congress(Download)
                break
 
    return utils.uniq(bill_ids)
 
 

src/p/d/pdfminer3k-1.3.0/pdfminer/layout.py   pdfminer3k(Download)
import logging
from itertools import combinations
 
from .utils import (INF, get_bound, uniq, fsplit, drange, bbox2str, matrix2str, apply_matrix_pt,
    trailiter)
            else:
                box = LTTextBoxVertical()
            for obj in uniq(members):
                box.add(obj)
                boxes[obj] = box

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/datastructures.py   socorro(Download)
from kombu.utils.limits import TokenBucket  # noqa
 
from .utils import uniq
from .utils.compat import UserDict, OrderedDict
 
    def _iterate_keys(self):
        return uniq(self._iter(lambda d: d.iterkeys()))
    iterkeys = _iterate_keys
 
    def _iterate_items(self):

src/c/o/congress-HEAD/tasks/nominations.py   congress(Download)
            nomination_ids.append(pieces[1])
 
    return utils.uniq(nomination_ids)
 
 

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/datastructures.py   make.mozilla.org(Download)
from kombu.utils.limits import TokenBucket  # noqa
 
from .utils import uniq
from .utils.compat import UserDict, OrderedDict
 
    def _iterate_keys(self):
        return uniq(self._iter(lambda d: d.iterkeys()))
    iterkeys = _iterate_keys
 
    def _iterate_items(self):

src/p/l/playdoh-lib-HEAD/lib/python/celery/datastructures.py   playdoh-lib(Download)
from kombu.utils.limits import TokenBucket  # noqa
 
from .utils import uniq
from .utils.compat import UserDict, OrderedDict
 
    def _iterate_keys(self):
        return uniq(self._iter(lambda d: d.iterkeys()))
    iterkeys = _iterate_keys
 
    def _iterate_items(self):

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/datastructures.py   mozillians(Download)
from kombu.utils.limits import TokenBucket  # noqa
 
from .utils import uniq
from .utils.compat import UserDict, OrderedDict
 
    def _iterate_keys(self):
        return uniq(self._iter(lambda d: d.iterkeys()))
    iterkeys = _iterate_keys
 
    def _iterate_items(self):

src/k/u/kuma-lib-HEAD/packages/celery/celery/datastructures.py   kuma-lib(Download)
from kombu.utils.limits import TokenBucket  # noqa
 
from .utils import uniq
from .utils.compat import UserDict, OrderedDict
 
    def _iterate_keys(self):
        return uniq(self._iter(lambda d: d.iterkeys()))
    iterkeys = _iterate_keys
 
    def _iterate_items(self):

src/p/y/pyrels-0.1.1/src/pyrels/pyrels2dot.py   pyrels(Download)
 
 
from utils import uniq