Serhiy Storchaka <storch...@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14722> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com