Global Variables: Numba Nopython's Compile-Time Constants

Numba's nopython mode treats global and closure variables as immutable compile-time constants; any attempt to modify them within a jitted function or expect runtime updates without recompilation will lead to compilation errors.

Sources

Open the full topic