This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients AlexWaygood, JelleZijlstra, gvanrossum, kj, rhettinger, tfish2
Date 2022-04-05.21:15:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649193303.18.0.281127855851.issue47234@roundup.psfhosted.org>
In-reply-to
Content
This is a partial duplicate of an issue you already filed: https://bugs.python.org/issue47121 where math.isfinite(10**1000) raises an OverflowError even though it type checks.

Here was one of the comments:
"""
Types relationships are useful for verifying which methods are available, but they don't make promises about the range of valid values.  For example math.sqrt(float) -> float promises which types are acceptable but doesn't promise that negative inputs won't raise an exception.  Likewise, "n: int=10; len(range(n))" is type correct but will raise an OverflowError for "n = 10**100".
"""
History
Date User Action Args
2022-04-05 21:15:03rhettingersetrecipients: + rhettinger, gvanrossum, JelleZijlstra, kj, AlexWaygood, tfish2
2022-04-05 21:15:03rhettingersetmessageid: <1649193303.18.0.281127855851.issue47234@roundup.psfhosted.org>
2022-04-05 21:15:03rhettingerlinkissue47234 messages
2022-04-05 21:15:03rhettingercreate