Title: Possible error in LOAD_FAST_LOAD_FAST opcode: test_statistics: `test_kde_random` spurious failure · Issue #130854 · python/cpython · GitHub
Open Graph Title: Possible error in LOAD_FAST_LOAD_FAST opcode: test_statistics: `test_kde_random` spurious failure · Issue #130854 · python/cpython
X Title: Possible error in LOAD_FAST_LOAD_FAST opcode: test_statistics: `test_kde_random` spurious failure · Issue #130854 · python/cpython
Description: Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio ====================================================================== ERROR: test_kde_random (test.test_statistics.TestKDE.test_kde_random) (kernel='g...
Open Graph Description: Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio ====================================================================== ERROR: test_kde_random (test.test_statis...
X Description: Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio ====================================================================== ERROR: test_kde_random (test.test_statis...
Opengraph URL: https://github.com/python/cpython/issues/130854
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible error in LOAD_FAST_LOAD_FAST opcode: test_statistics: `test_kde_random` spurious failure","articleBody":"Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio\n\n```\n======================================================================\nERROR: test_kde_random (test.test_statistics.TestKDE.test_kde_random) (kernel='gauss')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/test/test_statistics.py\", line 2518, in test_kde_random\n big_sample = sorted([rand() for i in range(n)])\n ~~~~^^\n File \"/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/statistics.py\", line 1122, in rand\n return choice(data) + h * invcdf(random())\n ~~~~~~^^^^^^\n File \"/root/buildarea/pull_request.angelico-debian-amd64/build/Lib/random.py\", line 352, in choice\n return seq[self._randbelow(len(seq))]\n ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: 'Random' object is not subscriptable\n\n----------------------------------------------------------------------\n```\n\nhttps://github.com/python/cpython/blob/c989e74446836ce8a00ae002d4c229c81e1f7905/Lib/test/test_statistics.py#L2518\n\nhttps://github.com/python/cpython/blob/c989e74446836ce8a00ae002d4c229c81e1f7905/Lib/statistics.py#L1117-L1122\n\nhttps://github.com/python/cpython/blob/c989e74446836ce8a00ae002d4c229c81e1f7905/Lib/random.py#L345-L352\n\nhttps://github.com/python/cpython/blob/c989e74446836ce8a00ae002d4c229c81e1f7905/Lib/random.py#L225-L243\n ","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2025-03-04T20:47:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/130854/cpython/issues/130854"}
| 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:1fb397d1-81c1-5f19-4a57-7e68e874452b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE84:2BBCB0:6B4204:93445B:696AAFC7 |
| html-safe-nonce | 1547b6f9c5595476b5dfd76819e78f1eb64e0d4b9765f26c52c634165dbe40fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTg0OjJCQkNCMDo2QjQyMDQ6OTM0NDVCOjY5NkFBRkM3IiwidmlzaXRvcl9pZCI6IjU4MTY1MTIwMTk4OTE0MDA2NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 656e75ce2c03acb842dfae595b09961d2b1a5e41c517a70d83d810dff1cd3003 |
| hovercard-subject-tag | issue:2895375626 |
| 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/130854/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9834f8a644bcc93539096077cb96d7a389a3eb0616ccd096ba183eacdfe8a74/python/cpython/issues/130854 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9834f8a644bcc93539096077cb96d7a389a3eb0616ccd096ba183eacdfe8a74/python/cpython/issues/130854 |
| og:image:alt | Seen in https://buildbot.python.org/all/#/builders/310/builds/1665/steps/6/logs/stdio ====================================================================== ERROR: test_kde_random (test.test_statis... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width