how to apply decorators to Python functions implemented in C?
how to apply decorators to Python functions implemented in C?
how to apply decorators to Python functions implemented in C?
Re: how to apply decorators to Python functions implemented in C?
Everything related to decoration is done during the compilation phase and results in inserting extra bytecode. So to produce the same effect in C you'd have to do that exactly. Which is probably not easy. The workaround, wrapping the function in a Python module and doing decoration over there, seems more feasible.