Source

pypy / pypy / rpython / ootypesystem / rgeneric.py

Full commit
Adrien Di Mascio 724a8d9 







1
2
3
4
5
6
7
8
9

from pypy.rpython.rgeneric import AbstractGenericCallableRepr
from pypy.rpython.ootypesystem import ootype

class GenericCallableRepr(AbstractGenericCallableRepr):
    def create_low_leveltype(self):
        l_args = [r_arg.lowleveltype for r_arg in self.args_r]
        l_retval = self.r_result.lowleveltype
        return ootype.StaticMethod(l_args, l_retval)