Message 160010 - Python tracker (original) (raw)
No one integer produces infinity in 'double' parameter parsing.
But the 'float' parameter parsing can produce infinity, and it can raise an exception. To be consistent, we need or produce infinity on double overflow (in this case, we must explicitly produce infinity on float overflow), or to raise an exception on float overflow.
There is also a third option -- deprecate the 'float' parameter parsing. Leave the responsibility for the proper overflow handling on the user.