Message416818
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".
""" |
|
Date |
User |
Action |
Args |
2022-04-05 21:15:03 | rhettinger | set | recipients:
+ rhettinger, gvanrossum, JelleZijlstra, kj, AlexWaygood, tfish2 |
2022-04-05 21:15:03 | rhettinger | set | messageid: <1649193303.18.0.281127855851.issue47234@roundup.psfhosted.org> |
2022-04-05 21:15:03 | rhettinger | link | issue47234 messages |
2022-04-05 21:15:03 | rhettinger | create | |
|