See https://github.com/numba/numba/issues/9242 for technical details.
Defining variable inside loop/one of the if branches and using it outside confuses Numba compiler, which can lead to invalid code being generated. Define vars outside as workaround.
Those are only such issues I immediately noticed, there may be more in such vein.
See https://github.com/numba/numba/issues/9242 for technical details. Defining variable inside loop/one of the
if
branches and using it outside confuses Numba compiler, which can lead to invalid code being generated. Define vars outside as workaround.Those are only such issues I immediately noticed, there may be more in such vein.