| 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:f5677600-b971-b998-f7f5-197ffc12c193 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E42A:1DABE0:A59A4F:A91038:6A63AEB5 |
| html-safe-nonce | 1f2d43bb4ecd65c76a5690617bcb2a41694b0e989d5e3b1428500c54d0173ffb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDJBOjFEQUJFMDpBNTlBNEY6QTkxMDM4OjZBNjNBRUI1IiwidmlzaXRvcl9pZCI6IjUyOTc0Njk2NDE3MDc0NjY0MjEiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | bfda319eaf2a7dd6a5749133725195a4c2d148252ba9d28572e55c7450224d35 |
| hovercard-subject-tag | pull_request:4121537238 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/154571/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/501ce0eb13cfbb16e88f9ddd5632e4bd5d3f2950a4a5a82b023f8561668cc168/python/cpython/pull/154571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/501ce0eb13cfbb16e88f9ddd5632e4bd5d3f2950a4a5a82b023f8561668cc168/python/cpython/pull/154571 |
| og:image:alt | A source iterable or func= callable that calls back into next() on
the same accumulate object mid-step silently corrupted the running
total instead of erroring. Fixes gh-154570.
Adds a running guar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PhysicistJohn |
| hostname | github.com |
| expected-hostname | github.com |
| None | c69b5576237034cb6ab5477391df7811093a00579a751b33bed4b527d68aade6 |
| turbo-cache-control | no-cache |
| 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 | 5c31956f7a31ef033ef93ba813dcb6f7e8eb0972 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://Github.com/python/cpython/pull/154571#start-of-content |
|
| https://Github.com/ |
|
Sign in
| https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154571 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154571 |
|
Sign up
| https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://Github.com/python/cpython/pull/154571 |
| Reload | https://Github.com/python/cpython/pull/154571 |
| Reload | https://Github.com/python/cpython/pull/154571 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
python
| https://Github.com/python |
| cpython | https://Github.com/python/cpython |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
Notifications
| https://Github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://Github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.9k
| https://Github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://Github.com/python/cpython |
|
Issues
5k+
| https://Github.com/python/cpython/issues |
|
Pull requests
2.4k
| https://Github.com/python/cpython/pulls |
|
Actions
| https://Github.com/python/cpython/actions |
|
Projects
| https://Github.com/python/cpython/projects |
|
Security and quality
0
| https://Github.com/python/cpython/security |
|
Insights
| https://Github.com/python/cpython/pulse |
|
Code
| https://Github.com/python/cpython |
|
Issues
| https://Github.com/python/cpython/issues |
|
Pull requests
| https://Github.com/python/cpython/pulls |
|
Actions
| https://Github.com/python/cpython/actions |
|
Projects
| https://Github.com/python/cpython/projects |
|
Security and quality
| https://Github.com/python/cpython/security |
|
Insights
| https://Github.com/python/cpython/pulse |
| PhysicistJohn | https://Github.com/PhysicistJohn |
| python:main | https://Github.com/python/cpython/tree/main |
| PhysicistJohn:gh-154570-accumulate-reentrancy-fix | https://Github.com/PhysicistJohn/cpython/tree/gh-154570-accumulate-reentrancy-fix |
| Conversation | https://Github.com/python/cpython/pull/154571 |
| Commits3 (3) | https://Github.com/python/cpython/pull/154571/commits |
| Checks | https://Github.com/python/cpython/pull/154571/checks |
| Files changed | https://Github.com/python/cpython/pull/154571/files |
| gh-154570: Fix itertools.accumulate() silently corrupting its total on reentrancy | https://Github.com/python/cpython/pull/154571#top |
| PhysicistJohn | https://Github.com/PhysicistJohn |
| python:main | https://Github.com/python/cpython/tree/main |
| PhysicistJohn:gh-154570-accumulate-reentrancy-fix | https://Github.com/PhysicistJohn/cpython/tree/gh-154570-accumulate-reentrancy-fix |
|
| https://Github.com/PhysicistJohn |
| PhysicistJohn | https://Github.com/PhysicistJohn |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#issue-4964736933 |
| gh-154570 | https://github.com/python/cpython/issues/154570 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
| https://Github.com/PhysicistJohn |
| pythongh-154570 | https://github.com/python/cpython/issues/154570 |
| : Fix itertools.accumulate() silently corrupting its t… | https://Github.com/python/cpython/pull/154571/commits/643254e7976c4e27ebb0acaca4992751d3b918cc |
| 643254e | https://Github.com/python/cpython/pull/154571/commits/643254e7976c4e27ebb0acaca4992751d3b918cc |
| https://Github.com/PhysicistJohn |
| PhysicistJohn | https://Github.com/PhysicistJohn |
| rhettinger | https://Github.com/rhettinger |
| code owner | https://Github.com/python/cpython/blob/66e313f471516bfa04c5c8966c159fafe6be082e/.github/CODEOWNERS#L517 |
| July 24, 2026 02:54 | https://Github.com/python/cpython/pull/154571#event-28415034986 |
| https://Github.com/apps/python-cla-bot |
| python-cla-bot | https://Github.com/apps/python-cla-bot |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#issuecomment-5065683642 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| https://cla.python.org/ |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| https://Github.com/apps/bedevere-app |
| bedevere-app | https://Github.com/apps/bedevere-app |
|
Jul 24, 2026
| https://Github.com/python/cpython/pull/154571#ref-issue-4964734610 |
|
itertools.accumulate() silently corrupts its running total on reentrancy
#154570
| https://Github.com/python/cpython/issues/154570 |
| https://Github.com/apps/bedevere-app |
| bedevere-app | https://Github.com/apps/bedevere-app |
|
awaiting review
| https://Github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#event-28415037479 |
| https://Github.com/brijkapadia |
| brijkapadia | https://Github.com/brijkapadia |
|
Jul 24, 2026
| https://Github.com/python/cpython/pull/154571#pullrequestreview-4772946733 |
|
View reviewed changes
| https://Github.com/python/cpython/pull/154571/files/643254e7976c4e27ebb0acaca4992751d3b918cc |
| brijkapadia | https://Github.com/brijkapadia |
| https://Github.com/python/cpython/pull/154571#pullrequestreview-4772946733 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @eendebakpt | https://github.com/eendebakpt |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| Lib/test/test_itertools.py | https://Github.com/python/cpython/pull/154571/files/643254e7976c4e27ebb0acaca4992751d3b918cc#diff-9abbaeca99112e9e04b554726bff97b76030eb982f39e591be77be8ef14149e5 |
| brijkapadia | https://Github.com/brijkapadia |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#discussion_r3645149737 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| Misc/NEWS.d/next/Library/2026-07-23-22-00-00.gh-issue-154570.accumulate-reentrancy.rst | https://Github.com/python/cpython/pull/154571/files/643254e7976c4e27ebb0acaca4992751d3b918cc#diff-48a1782b3502b8b22849901e1f6d04f32924c9d7eeda22bf65973bdefa36f47a |
| brijkapadia | https://Github.com/brijkapadia |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#discussion_r3645164602 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| Modules/itertoolsmodule.c | https://Github.com/python/cpython/pull/154571/files/643254e7976c4e27ebb0acaca4992751d3b918cc#diff-dc27cbdf2b9f6e5236cade13cf301d352a7abd2a8b1988f2517d6f5b7a30c201 |
| brijkapadia | https://Github.com/brijkapadia |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#discussion_r3645168577 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
| https://Github.com/PhysicistJohn |
| Address review feedback: trim comment/NEWS, uint8_t running, add func… | https://Github.com/python/cpython/pull/154571/commits/93ddb18e395e21bc1dd824e7f29374b605ace69f |
| 93ddb18 | https://Github.com/python/cpython/pull/154571/commits/93ddb18e395e21bc1dd824e7f29374b605ace69f |
| pythonGH-154571 | https://github.com/python/cpython/pull/154571 |
| https://Github.com/PhysicistJohn |
| PhysicistJohn | https://Github.com/PhysicistJohn |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#issuecomment-5071918517 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
| https://Github.com/PhysicistJohn |
| Retrigger CI: Android/EPUB failures were GitHub release-asset 504s, u… | https://Github.com/python/cpython/pull/154571/commits/69b8a823977733cef6c673f413fd9709d6f66808 |
| 69b8a82 | https://Github.com/python/cpython/pull/154571/commits/69b8a823977733cef6c673f413fd9709d6f66808 |
| https://Github.com/brijkapadia |
| brijkapadia | https://Github.com/brijkapadia |
| Jul 24, 2026 | https://Github.com/python/cpython/pull/154571#issuecomment-5072102123 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
| https://github.co/hiddenchars |
| https://Github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://Github.com/join?source=comment-repo |
| Sign in to comment | https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154571 |
|
| https://Github.com/rhettinger |
|
rhettinger
| https://Github.com/rhettinger |
|
| https://Github.com/brijkapadia |
|
brijkapadia
| https://Github.com/brijkapadia |
|
| https://Github.com/python/cpython/pull/154571/files/643254e7976c4e27ebb0acaca4992751d3b918cc |
|
awaiting review
| https://Github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
|
itertools.accumulate() silently corrupts its running total on reentrancy
| https://github.com/python/cpython/issues/154570 |
| Please reload this page | https://Github.com/python/cpython/pull/154571 |
|
| https://Github.com/PhysicistJohn |
|
| https://Github.com/brijkapadia |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |