> It will break an ENORMOUS amount of code. Numpy has its own top-level
> "inf" variable. So all code that uses "from numpy import *" will break.
The fact that so many modules and packages must define an 'inf' is, to me, a signal that such a constant WOULD be useful. All of them (should) be referring to the same value, anyways, so why not make a global constant instead?
You can't argue that 'no one needs an infinity constant' and yet also giving evidence of code breakage of everyone having to define their own infinity constant. Surely you must see that these reasons are why I suggested the constant in the first place.
Now, obviously, numpy should probably define their own infinity just for completeness, because it is supposed to be a comprehensive package.
Perhaps the infinity constant should be a builtin which can be shadowed instead of a keyword (that way, no pre-existing code would break, except really weird code that only works if 'inf' is *not* defined).
Research Assistant @ ICL (Innovative Computing Laboratory)