Python RuntimeWarning: overflow encountered in long scalars
I am new to programming. In my latest Python 2.7 project I encountered the following: RuntimeWarning: overflow encountered in long_scalars Could someone please elaborate what this means and what I could do to fix that? The code runs through, but I'm not sure if it is a good idea to just ignore the warning. It happens during an append process like: SomeList.append(VeryLongFormula) Here's an example which issues the same warning: import numpy as np np.seterr(all='warn') A = np.array([10]) a=A[-1] a**a yields RuntimeWarning: overflow encountered in long_scalars In the example above it happens