| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7ed39b5b-1aa7-994c-f66b-f70386708d65 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A28C:B7E00:255380:2F469E:696B3C7B |
| html-safe-nonce | 8b91c829570600b83afca94f90bf36fa3fc2d98e2bea2131cd9f6a0547795fdf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjhDOkI3RTAwOjI1NTM4MDoyRjQ2OUU6Njk2QjNDN0IiLCJ2aXNpdG9yX2lkIjoiMzMyMTQ3MTIyMTYzODA1Mjk4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1f363f271444cdfe01bafcac76f4b823fe00c4b127e29d98ac4ecff957262b80 |
| hovercard-subject-tag | pull_request:1215858852 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/101305/files |
| twitter:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| og:image:alt | Add repeat, islice, chain, tee, teedataobject, and batched types to module state.
Issue: gh-101277
Automerge-Triggered-By: GH:erlend-aasland |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
| Skip to content | https://github.com/python/cpython/pull/101305/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101305%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F101305%2Ffiles |
|
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/101305/files |
| Reload | https://github.com/python/cpython/pull/101305/files |
| Reload | https://github.com/python/cpython/pull/101305/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
|
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
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| miss-islington | https://github.com/miss-islington |
| python:main | https://github.com/python/cpython/tree/main |
| erlend-aasland:isolate-itertools/batch-4 | https://github.com/erlend-aasland/cpython/tree/isolate-itertools/batch-4 |
|
Conversation
17
| https://github.com/python/cpython/pull/101305 |
|
Commits
24
| https://github.com/python/cpython/pull/101305/commits |
|
Checks
0
| https://github.com/python/cpython/pull/101305/checks |
|
Files changed
| https://github.com/python/cpython/pull/101305/files |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
|
gh-101277: Finalise isolating itertools
| https://github.com/python/cpython/pull/101305/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/101305/files |
|
9a4b14c
gh-101277: Add repeat type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/9a4b14c075388ae764141a346fc028bbc99215f5 |
|
a66b888
gh-101277: Add islice type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/a66b888c4d5fe02cbfaea266ae3cb857be47eaaa |
|
d18169b
gh-101277: Add chain type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/d18169b4dc20ab224749278285f3c2b266cb2c7a |
|
e574de1
gh-101277: Add tee type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/e574de10a73bc0954581a10ff25fbb07925b398b |
|
053b759
gh-101277: Add tee data object type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/053b75902db271c99a90e2c46256d9490d67b799 |
|
94972ba
Add NEWS
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/94972ba5daddeed622354566dd451506fe1d0e99 |
|
da57b52
Purge globals-to-fix.tsv
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/da57b52bdb80cd039184ba48334602e9dfe4be3b |
|
e937984
Make chain and repeat immutable
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/e9379849b6c921c41d8415b6fe2161d6521bc80a |
|
4264f8b
Add batched type to module state
erlend-aasland Jan 24, 2023
| https://github.com/python/cpython/pull/101305/commits/4264f8b58ee41d96b982d07d9a00b61a30561071 |
|
930fbe1
Use PyType_GetModuleState for types which cannot be subclassed
erlend-aasland Feb 3, 2023
| https://github.com/python/cpython/pull/101305/commits/930fbe130453e11540a66ffdbcf6460e74ecac76 |
|
d45d438
Revert unneeded changes that made the code more readable
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/d45d4386fd2b97a3b6f11e8f5eb7cbb3d4d06a1c |
|
cf3d528
Ditto
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/cf3d52818dbea5d0c6e3ab5fdc3ea141f79d5cd9 |
|
c4981ff
Ditto again
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/c4981ff3e588c35003afab495434663b713d6ef1 |
|
1a86a5d
Store state in accumulateobject to speed up __reduce__
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/1a86a5d5f04244f070012e893d37db0b1bbff7ff |
|
b57d177
Store state in teeobject to speed up __setstate__
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/b57d177dfcd98ab7b4bf2823b45e3a84565d33c0 |
|
d7bd16a
Remove unneeded change that made the code more readable
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/d7bd16aaacd37434f75b54f20bc4ae2f0a2fc00d |
|
d16bed1
Speed up teedataobject_jumplink() by passing state from teeobject
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/d16bed11ec54e388c6b937e49225ea793c6333e9 |
|
68e63dd
Remove unneeded PEP-7 change
erlend-aasland Feb 8, 2023
| https://github.com/python/cpython/pull/101305/commits/68e63dd1746b4d16f87993dee8d0443f46ce0042 |
|
9f68cd1
Fix tee_copy
erlend-aasland Feb 9, 2023
| https://github.com/python/cpython/pull/101305/commits/9f68cd16eb20a90d7e688e10b338fc17ce642061 |
|
ef2d52f
Sync with main
erlend-aasland Feb 9, 2023
| https://github.com/python/cpython/pull/101305/commits/ef2d52f76a2127f0f645f670d8895b3030623049 |
|
a9c6ce5
Visit and clear teedataobject_type
erlend-aasland Feb 9, 2023
| https://github.com/python/cpython/pull/101305/commits/a9c6ce51a0737a08bd1bd8d59398dcd526b80160 |
|
8f554f4
Add clear methods to all types
erlend-aasland Feb 9, 2023
| https://github.com/python/cpython/pull/101305/commits/8f554f4e81fe888b81a0fe06eb26feede89108af |
|
1351172
Sync with main
erlend-aasland Feb 10, 2023
| https://github.com/python/cpython/pull/101305/commits/1351172c0a398476634ad9a389b3823fcdb83fbb |
|
5213d1f
Revert "Add clear methods to all types"
erlend-aasland Feb 10, 2023
| https://github.com/python/cpython/pull/101305/commits/5213d1f82945b42d5e40322cc8106ad42e0a2951 |
|
Clear filters
| https://github.com/python/cpython/pull/101305/files |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
|
2023-01-25-00-14-52.gh-issue-101277.FceHX7.rst
| https://github.com/python/cpython/pull/101305/files#diff-22bef5d30eced599dc3a5e6ae30c2e98e9b33613bf7eda19c2371b6565acf50e |
|
itertoolsmodule.c.h
| https://github.com/python/cpython/pull/101305/files#diff-1628d1649ee211a1608915194dc2bdb99f3c8db7e7e652445febe496a5b52184 |
|
itertoolsmodule.c
| https://github.com/python/cpython/pull/101305/files#diff-dc27cbdf2b9f6e5236cade13cf301d352a7abd2a8b1988f2517d6f5b7a30c201 |
|
globals-to-fix.tsv
| https://github.com/python/cpython/pull/101305/files#diff-8d1e9a0d5771dfc3a628047509e2d4a1027327bd89392e5a3ec5fbd3d08cfa19 |
| Misc/NEWS.d/next/Library/2023-01-25-00-14-52.gh-issue-101277.FceHX7.rst | https://github.com/python/cpython/pull/101305/files#diff-22bef5d30eced599dc3a5e6ae30c2e98e9b33613bf7eda19c2371b6565acf50e |
|
View file
| https://github.com/erlend-aasland/cpython/blob/5213d1f82945b42d5e40322cc8106ad42e0a2951/Misc/NEWS.d/next/Library/2023-01-25-00-14-52.gh-issue-101277.FceHX7.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/101305/{{ revealButtonHref }} |
| Modules/clinic/itertoolsmodule.c.h | https://github.com/python/cpython/pull/101305/files#diff-1628d1649ee211a1608915194dc2bdb99f3c8db7e7e652445febe496a5b52184 |
|
View file
| https://github.com/erlend-aasland/cpython/blob/5213d1f82945b42d5e40322cc8106ad42e0a2951/Modules/clinic/itertoolsmodule.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
| Please reload this page | https://github.com/python/cpython/pull/101305/files |
|
| 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 |