Title: What's new in 3.12: fix typo: non-integral -> non-integer · Issue #106973 · python/cpython · GitHub
Open Graph Title: What's new in 3.12: fix typo: non-integral -> non-integer · Issue #106973 · python/cpython
X Title: What's new in 3.12: fix typo: non-integral -> non-integer · Issue #106973 · python/cpython
Description: Documentation https://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api says: Removed randrange() functionality deprecated since Python 3.10. Formerly, randrange(10.0) losslessly converted to randrange(10). Now, it raises...
Open Graph Description: Documentation https://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api says: Removed randrange() functionality deprecated since Python 3.10. Formerly, randrange(10.0) losslessly co...
X Description: Documentation https://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api says: Removed randrange() functionality deprecated since Python 3.10. Formerly, randrange(10.0) losslessly co...
Opengraph URL: https://github.com/python/cpython/issues/106973
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"What's new in 3.12: fix typo: non-integral -\u003e non-integer","articleBody":"# Documentation\r\n\r\nhttps://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api says:\r\n\r\n\u003e * Removed randrange() functionality deprecated since Python 3.10. Formerly, randrange(10.0) losslessly converted to randrange(10). Now, it raises a [TypeError](https://docs.python.org/3.12/library/exceptions.html#TypeError). Also, the exception raised for non-integral values such as randrange(10.5) or randrange('10') has been changed from [ValueError](https://docs.python.org/3.12/library/exceptions.html#ValueError) to [TypeError](https://docs.python.org/3.12/library/exceptions.html#TypeError). This also prevents bugs where randrange(1e25) would silently select from a larger range than randrange(10**25). (Originally suggested by Serhiy Storchaka [gh-86388](https://github.com/python/cpython/issues/86388).)\r\n\r\n\"non-integral\" should be \"non-integer\"\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106984\n* gh-106986\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/hugovk","@type":"Person","name":"hugovk"},"datePublished":"2023-07-21T21:15:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/106973/cpython/issues/106973"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:636c977f-3297-b6f7-161f-43adc61592ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87EA:21FEDA:2A442FD:392E1B1:696AEABA |
| html-safe-nonce | 85b9a43a53ee08317808e6ab5e2b68482752b6d23d6baa9f487ae72e6730cd82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VBOjIxRkVEQToyQTQ0MkZEOjM5MkUxQjE6Njk2QUVBQkEiLCJ2aXNpdG9yX2lkIjoiODMwNDAzNDgyMTQ5MDUzNTA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 526bc777ce9be8c921b3a2dc45471917310673899bdb4c57a27c3251c62852fe |
| hovercard-subject-tag | issue:1816391298 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/python/cpython/106973/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2428ebce9005dc76f507e2d517de75d2d666a6536a96fa69293a803c563b6f8/python/cpython/issues/106973 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2428ebce9005dc76f507e2d517de75d2d666a6536a96fa69293a803c563b6f8/python/cpython/issues/106973 |
| og:image:alt | Documentation https://docs.python.org/3.12/whatsnew/3.12.html#changes-in-the-python-api says: Removed randrange() functionality deprecated since Python 3.10. Formerly, randrange(10.0) losslessly co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hugovk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width