You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
naturaldelta() raises OverflowError on float('inf') instead of returning it unchanged #333
naturaldelta() documents that a non-finite float value is "returned unchanged." nan is handled (its int() raises ValueError, which is caught), but float('inf')/float('-inf') raise an uncaught OverflowError from int(value), because the except (ValueError, TypeError) clause omits OverflowError. The behavior is asymmetric and contradicts the docstring.
Activity