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

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

src/l/i/libphilo-HEAD/python/philologic/HitList.py   libphilo(Download)
import codecs
import struct
from HitWrapper import HitWrapper, ObjectWrapper
 
class HitList(object):
        else:            
            self.readhit(n)
            return HitWrapper(self.readhit(n),self.dbh)
 
    def get_slice(self,n):
            except IndexError,IOError:
                break
            yield HitWrapper(hit,self.dbh)
            slice_position += 1
 
            except IndexError,IOError:
                break
            yield HitWrapper(hit,self.dbh)
            iter_position += 1
 

src/l/i/libphilo-HEAD/python/philologic/DB.py   libphilo(Download)
import HitList
import sys
from HitWrapper import HitWrapper
from philologic import Query,shlax
 
    def __getitem__(self,item):
        hit = self.get_id_lowlevel(item)
        hit = [int(x) for x in hit["philo_id"].split(" ")]
        return HitWrapper(hit,self)