Пример #1
0
    def cythonized(specs):
        arg_types = {}

        for spec in specs.split(','):
            arg_types[spec] = cython.int

        return cython.locals(**arg_types)
Пример #2
0
    def cythonized(specs):
        arg_types = {}

        for spec in specs.split(','):
            arg_types[spec] = cython.int

        return cython.locals(**arg_types)
def cythonized(intspecs='', floatspecs=''):
    arg_types = {}

    for spec in intspecs.split(' '):
        arg_types[spec] = cython.int
    for spec in floatspecs.split(' '):
        arg_types[spec] = cython.float

    return cython.locals(**arg_types)