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

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/b/i/biopython-1.63/Bio/SearchIO/_model/query.py   biopython(Download)
from itertools import chain
 
from Bio._py3k import OrderedDict
from Bio._py3k import filter
 
        self._id = id
        self._hit_key_function = hit_key_function
        self._items = OrderedDict()
        self._description = None
        self.program = '<unknown program>'
        # if sorting is in-place, don't create a new QueryResult object
        if in_place:
            new_hits = OrderedDict()
            for hit in sorted_hits:
                new_hits[self._hit_key_function(hit)] = hit

src/b/i/biopython-HEAD/Bio/SearchIO/_model/query.py   biopython(Download)
from itertools import chain
 
from Bio._py3k import OrderedDict
from Bio._py3k import filter
 
        self._id = id
        self._hit_key_function = hit_key_function
        self._items = OrderedDict()
        self._description = None
        self.program = '<unknown program>'
        # if sorting is in-place, don't create a new QueryResult object
        if in_place:
            new_hits = OrderedDict()
            for hit in sorted_hits:
                new_hits[self._hit_key_function(hit)] = hit

src/b/i/biopython-HEAD/Tests/test_py3k.py   biopython(Download)
    def test_od(self):
        """Quick test OrderedDict works."""
        from Bio._py3k import OrderedDict
        d = OrderedDict()
        d[5] = "five"

src/b/i/biopython-1.63/Tests/test_py3k.py   biopython(Download)
    def test_od(self):
        """Quick test OrderedDict works."""
        from Bio._py3k import OrderedDict
        d = OrderedDict()
        d[5] = "five"