Open pearu opened 4 years ago
Thanks for the suggestion. I think this is a good thing to have, but should probably be @overload
'd or @register_jitable
'd and made to work "kind of the same" when JIT is disabled (i.e. might have to replace the format specifiers to make it work in CPython). As to location, how about numba.misc.utils
or similar? There's numba.misc.special
already but it's not like this is some special token, it's a useful piece of additional functionality.
@pearu ... does this still work ... i copied what you did and nothing was returned and it also seems that they moved cgutils
@QuantFreedom1022 not likely, for instance, cgutils now lives under numba.core. However, it should be possible to fix the feature for newer numba versions.
Feature request
Having the following implementation
one can call
printf
from a jit-decorated function. For instance,and then
I have found it useful for debugging. If there is interest, where such a codelet should land in numba?