| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6fef90f1-ffad-be37-d4be-510990d680ef |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A7B0:6FDD1:93D42A:C5975E:6969BFFE |
| html-safe-nonce | 7911fe66a0625a5d3b75b16bbbb12ecb0cf3e1cf9f51c9da56e28b67b6af7a69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0IwOjZGREQxOjkzRDQyQTpDNTk3NUU6Njk2OUJGRkUiLCJ2aXNpdG9yX2lkIjoiODU3NTY1Njk3ODc1MjMwNzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 63ec3b89fc05a5f6020afa96f12a4063a26e35229ff7924868dfebd81b4912bd |
| hovercard-subject-tag | pull_request:727400220 |
| 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/28176/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | Keep the current and stop values instead of initial start, index and initial length.
https://bugs.python.org/issue45026
#89189 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/28176/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28176%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%2F28176%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/28176/files |
| Reload | https://github.com/python/cpython/pull/28176/files |
| Reload | https://github.com/python/cpython/pull/28176/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/28176/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/28176/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 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| serhiy-storchaka:range-iter2 | https://github.com/serhiy-storchaka/cpython/tree/range-iter2 |
|
Conversation
8
| https://github.com/python/cpython/pull/28176 |
|
Commits
15
| https://github.com/python/cpython/pull/28176/commits |
|
Checks
0
| https://github.com/python/cpython/pull/28176/checks |
|
Files changed
| https://github.com/python/cpython/pull/28176/files |
| Please reload this page | https://github.com/python/cpython/pull/28176/files |
|
bpo-45026: More compact range iterator (alt)
| https://github.com/python/cpython/pull/28176/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/28176/files |
|
2fa0b0d
bpo-45026: More compact range iterator
serhiy-storchaka Aug 27, 2021
| https://github.com/python/cpython/pull/28176/commits/2fa0b0d756ec0ad5bd66be48dcf6411e879ffb73 |
|
1cd0138
Fix sizeof test.
serhiy-storchaka Aug 27, 2021
| https://github.com/python/cpython/pull/28176/commits/1cd01387ed050ecd71fee1196bb66a93d796abdb |
|
214f204
Merge branch 'main' into range-iter
serhiy-storchaka Aug 29, 2021
| https://github.com/python/cpython/pull/28176/commits/214f204c7114efe1f523de7e4354adce816706f0 |
|
3133f66
Add explicit tests for __setstate__.
serhiy-storchaka Aug 29, 2021
| https://github.com/python/cpython/pull/28176/commits/3133f664f1cd7c04ae60c7ca51b6ea3224024ac9 |
|
7a42474
Add a NEWS entry.
serhiy-storchaka Aug 29, 2021
| https://github.com/python/cpython/pull/28176/commits/7a42474da799a5b75ac661247c817771c18ee5a3 |
|
175b0d3
Merge branch 'main' into range-iter
serhiy-storchaka Sep 5, 2021
| https://github.com/python/cpython/pull/28176/commits/175b0d3bd125344f114955078dc6bdc85c45e415 |
|
177da8c
Keep stop instead of len.
serhiy-storchaka Sep 5, 2021
| https://github.com/python/cpython/pull/28176/commits/177da8c11e973bc6649d0c3d5ee06da54d020804 |
|
155cb3c
Merge branch 'main' into range-iter2
serhiy-storchaka Sep 10, 2021
| https://github.com/python/cpython/pull/28176/commits/155cb3c0802277c11cd8d5517bf477cd912b3885 |
|
dced0e6
Fix refleaks.
serhiy-storchaka Sep 10, 2021
| https://github.com/python/cpython/pull/28176/commits/dced0e69e4b703ae9706a7084f082cef7fc46aee |
|
3219849
Merge branch 'main' into range-iter2
serhiy-storchaka Sep 15, 2021
| https://github.com/python/cpython/pull/28176/commits/32198493d84bb9d3de008c701279ead99d3bf0aa |
|
cffa90a
Merge branch 'main' into range-iter2
serhiy-storchaka Sep 24, 2021
| https://github.com/python/cpython/pull/28176/commits/cffa90a8b0057d7e7456571045f2fb7b9ceb426f |
|
dbdb0cc
Merge branch 'main' into range-iter2
serhiy-storchaka Mar 28, 2022
| https://github.com/python/cpython/pull/28176/commits/dbdb0ccba14eb218347e49f788ca3675fd04f0af |
|
109445f
Merge branch 'main' into range-iter2
serhiy-storchaka Nov 27, 2022
| https://github.com/python/cpython/pull/28176/commits/109445f97b240baf1eff4577710962615cd7a3d6 |
|
189ca23
Unify code with range-iter.
serhiy-storchaka Nov 27, 2022
| https://github.com/python/cpython/pull/28176/commits/189ca23ec32e674016073c453c75c44bd54a8bd9 |
|
d315911
Microoptimize small range iteration.
serhiy-storchaka Nov 29, 2022
| https://github.com/python/cpython/pull/28176/commits/d3159110639c8b0468b84d9b58955ce751681310 |
|
Clear filters
| https://github.com/python/cpython/pull/28176/files |
| Please reload this page | https://github.com/python/cpython/pull/28176/files |
| Please reload this page | https://github.com/python/cpython/pull/28176/files |
|
pycore_range.h
| https://github.com/python/cpython/pull/28176/files#diff-460b87158671cb0f6b862710aebda9f63cb8bae6e16f14406c7bab77ab331fdc |
|
test_range.py
| https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
test_sys.py
| https://github.com/python/cpython/pull/28176/files#diff-f3ae0e3fbb12fe0717e2d9d8801f5d9f3091c34254d1302b228422d7d07fdc5d |
|
2021-08-29-15-55-19.bpo-45026.z7nTA3.rst
| https://github.com/python/cpython/pull/28176/files#diff-704a55b7237a29c1a7f016a92aac83e5a9391f2e2483c4d85ea26e9a231c03b6 |
|
rangeobject.c
| https://github.com/python/cpython/pull/28176/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
|
bytecodes.c
| https://github.com/python/cpython/pull/28176/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
generated_cases.c.h
| https://github.com/python/cpython/pull/28176/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448 |
| Include/internal/pycore_range.h | https://github.com/python/cpython/pull/28176/files#diff-460b87158671cb0f6b862710aebda9f63cb8bae6e16f14406c7bab77ab331fdc |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/d3159110639c8b0468b84d9b58955ce751681310/Include/internal/pycore_range.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28176/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28176/files#diff-460b87158671cb0f6b862710aebda9f63cb8bae6e16f14406c7bab77ab331fdc |
|
| https://github.com/python/cpython/pull/28176/files#diff-460b87158671cb0f6b862710aebda9f63cb8bae6e16f14406c7bab77ab331fdc |
| Lib/test/test_range.py | https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/d3159110639c8b0468b84d9b58955ce751681310/Lib/test/test_range.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28176/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
| https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
| https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
| https://github.com/python/cpython/pull/28176/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
| Lib/test/test_sys.py | https://github.com/python/cpython/pull/28176/files#diff-f3ae0e3fbb12fe0717e2d9d8801f5d9f3091c34254d1302b228422d7d07fdc5d |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/d3159110639c8b0468b84d9b58955ce751681310/Lib/test/test_sys.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28176/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28176/files#diff-f3ae0e3fbb12fe0717e2d9d8801f5d9f3091c34254d1302b228422d7d07fdc5d |
|
| https://github.com/python/cpython/pull/28176/files#diff-f3ae0e3fbb12fe0717e2d9d8801f5d9f3091c34254d1302b228422d7d07fdc5d |
| Misc/NEWS.d/next/Core and Builtins/2021-08-29-15-55-19.bpo-45026.z7nTA3.rst | https://github.com/python/cpython/pull/28176/files#diff-704a55b7237a29c1a7f016a92aac83e5a9391f2e2483c4d85ea26e9a231c03b6 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/d3159110639c8b0468b84d9b58955ce751681310/Misc/NEWS.d/next/Core%20and%20Builtins/2021-08-29-15-55-19.bpo-45026.z7nTA3.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28176/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/28176/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 |