[Cython] [ENH] Compile-time code execution (macros / templates)

Prakhar Goel newt0311 at gmail.com
Thu Feb 25 21:39:15 EST 2021


Celelibi wrote:
> def twice(f):
>     fun = CdefFunction(... use f ...)
>     return fun
>
> foo = CdefFunction(...)
> ast.append(AstCdefFunction("foo", twice(foo)))

Doesn't this just punt on how CdefFunction works? Feels like we're
back to AST re-writing.

--
________________________
Warm Regards
Prakhar Goel


More information about the cython-devel mailing list