Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize · GitHub
Open Graph Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize
X Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize
Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.
Open Graph Description: Fixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, TypeError...
X Description: Fixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, T...
Opengraph URL: https://github.com/python-humanize/humanize/pull/342
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ad18784b-65e9-ec03-9941-d22e3d47a269 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C634:2180CA:15EA3CB:1D28548:6A54399C |
| html-safe-nonce | 3272d54cde48eccaa65eab46faac20e09636c4ecceea3fd922fb56c0db808b80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjM0OjIxODBDQToxNUVBM0NCOjFEMjg1NDg6NkE1NDM5OUMiLCJ2aXNpdG9yX2lkIjoiOTA1MjI5Nzk1OTMyMTEyMzIyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0353fea95662c2d8a2583e22f79602c423b1fd25ee0e0997a81721680e507d30 |
| hovercard-subject-tag | pull_request:3979669302 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-humanize/humanize/342/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/05d67256bb79c88aee18806bd763a6efa54385c57a2cb2e5bb1154111667c6b9/python-humanize/humanize/pull/342 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05d67256bb79c88aee18806bd763a6efa54385c57a2cb2e5bb1154111667c6b9/python-humanize/humanize/pull/342 |
| og:image:alt | Fixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, TypeError... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HrachShah |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| go-import | github.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git |
| octolytics-dimension-user_id | 62149795 |
| octolytics-dimension-user_login | python-humanize |
| octolytics-dimension-repository_id | 466683324 |
| octolytics-dimension-repository_nwo | python-humanize/humanize |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 466683324 |
| octolytics-dimension-repository_network_root_nwo | python-humanize/humanize |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width