First, I am not even sure this is the right forum for this question, so if anyone wants to switch it to a more appropriate one, I would be grateful. Secondly, the question here is on one specific point of Python from a mathematical point of view. I neither know nor am learning how to program, but I am interested in one point: how Python deals with infinity. From what I understand from Googling, it uses scipy.isinf or float (inf) [or float(-inf)] either as an overflow response, or division by zero, or as a large (10^309 ?) [or small, -10^309 or whatever] number in something like integration, or as a value so that any number is less than it (or, for -inf, greater than it), or division by infinity = 0. Is this a fair summary for the non-programmer? Any corrections would be highly appreciated.