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

2021-02-27 Thread Prakhar Goel
I think we're past the point where more talking would help. Either I'm missing something important or you are. Like I said, if you ever get around to implementing this, drop me a line. I'd love to take a look. -- ____ Warm Regar

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

2021-02-26 Thread Prakhar Goel
y manageable amount. I mean... if you think "there's really no major obstacle" then more power to you! I'd love to see what you come up with. But I think you're underestimating the complexity of the task. -- Warm Regards Prakhar Goel __

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

2021-02-26 Thread Prakhar Goel
Greg, I assume the ast returned by twice will have the AST from f embedded in there somehow so no closure required. Something like: cdef _tmp_foo(...): # same as foo... cdef foo(...): _tmp_foo() _tmp_foo() -- PG ___ cython-devel mailing l

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

2021-02-25 Thread Prakhar Goel
ing. -- ____ Warm Regards Prakhar Goel ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

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

2021-02-24 Thread Prakhar Goel
ctions only or maybe even special syntax) to ensure that this is the case. -- ________ Warm Regards Prakhar Goel ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

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

2021-02-23 Thread Prakhar Goel
I had similar ideas in the past (assuming I understand your proposal). I'd love it if a decorator could link to some python function. This python function would get something that represents the cdef function (with the ast). It would then return a transformed ast that could be spliced into the orig

Re: [Cython] Size of output

2020-02-01 Thread Prakhar Goel
elf explanatory. -- ____ Warm Regards Prakhar Goel ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Fwd: .gitignore file in github repo

2020-01-10 Thread Prakhar Goel
I assume that was done to avoid including all the C files that the Cython compiler generates. You can specifically tell git not to ignore your C file using a ! pattern in the .gitignore file. More details here: https://git-scm.com/docs/gitignore. -- Warm Regards Prakhar

[Cython] Debugging Cython programs with PDB

2018-12-31 Thread Prakhar Goel
hanks. -- ____ Warm Regards Prakhar Goel ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel