Ejemplo n.º 1
0
Archivo: rpbc.py Proyecto: alkorzt/pypy
 def __init__(self, rtyper, methdescs):
     samplemdesc = methdescs.iterkeys().next()
     concretetable, uniquerows = get_concrete_calltable(rtyper, samplemdesc.funcdesc.getcallfamily())
     self.row_mapping = {}
     for row in uniquerows:
         sample_as_static_meth = row.itervalues().next()
         SM = ootype.typeOf(sample_as_static_meth)
         M = ootype.Meth(SM.ARGS[1:], SM.RESULT)  # cut self
         self.row_mapping[row.attrname] = row, M
Ejemplo n.º 2
0
 def __init__(self, rtyper, methdescs):
     samplemdesc = iter(methdescs).next()
     concretetable, uniquerows = get_concrete_calltable(rtyper,
                                          samplemdesc.funcdesc.getcallfamily())
     self.row_mapping = {}
     for row in uniquerows:
         sample_as_static_meth = row.itervalues().next()
         SM = ootype.typeOf(sample_as_static_meth)
         M = ootype.Meth(SM.ARGS[1:], SM.RESULT) # cut self
         self.row_mapping[row.attrname] = row, M
Ejemplo n.º 3
0
 def __init__(self, rtyper, s_pbc):
     self.rtyper = rtyper
     self.s_pbc = s_pbc
     self.callfamily = s_pbc.descriptions.iterkeys().next().getcallfamily()
     concretetable, uniquerows = get_concrete_calltable(self.rtyper,
                                                        self.callfamily)
     assert len(uniquerows) == 1
     self.lowleveltype = Char
     self.pointer_repr = FunctionsPBCRepr(rtyper, s_pbc)
     self._conversion_tables = {}
     self._dispatch_cache = {}
Ejemplo n.º 4
0
 def __init__(self, rtyper, s_pbc):
     self.rtyper = rtyper
     self.s_pbc = s_pbc
     self.callfamily = s_pbc.descriptions.iterkeys().next().getcallfamily()
     concretetable, uniquerows = get_concrete_calltable(self.rtyper,
                                                        self.callfamily)
     assert len(uniquerows) == 1
     self.lowleveltype = Char
     self.pointer_repr = FunctionsPBCRepr(rtyper, s_pbc)
     self._conversion_tables = {}
     self._dispatch_cache = {}
Ejemplo n.º 5
0
 def __init__(self, rtyper, s_pbc):
     AbstractMethodsPBCRepr.__init__(self, rtyper, s_pbc)
     sampledesc = s_pbc.descriptions.iterkeys().next()
     self.concretetable, _ = get_concrete_calltable(rtyper,
                                          sampledesc.funcdesc.getcallfamily())
Ejemplo n.º 6
0
 def _setup_repr_final(self):
     sampledesc = self.s_pbc.any_description()
     self.concretetable, _ = get_concrete_calltable(self.rtyper,
                                          sampledesc.funcdesc.getcallfamily())
Ejemplo n.º 7
0
 def __init__(self, rtyper, s_pbc):
     AbstractMethodsPBCRepr.__init__(self, rtyper, s_pbc)
     sampledesc = s_pbc.descriptions.iterkeys().next()
     self.concretetable, _ = get_concrete_calltable(
         rtyper, sampledesc.funcdesc.getcallfamily())
Ejemplo n.º 8
0
Archivo: rpbc.py Proyecto: alkorzt/pypy
 def _setup_repr_final(self):
     sampledesc = self.s_pbc.descriptions.iterkeys().next()
     self.concretetable, _ = get_concrete_calltable(self.rtyper, sampledesc.funcdesc.getcallfamily())
Ejemplo n.º 9
0
 def _setup_repr_final(self):
     sampledesc = self.s_pbc.descriptions.iterkeys().next()
     self.concretetable, _ = get_concrete_calltable(
         self.rtyper, sampledesc.funcdesc.getcallfamily())