| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6e074d3c-a859-a958-b071-625b2c92613d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A77A:2BF14B:CA6D07:1163C26:6A4DCA41 |
| html-safe-nonce | 2e4c3201813391b5005c5e4ece379add6a473c52b5f82eb4afcc1511fc82edc2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzdBOjJCRjE0QjpDQTZEMDc6MTE2M0MyNjo2QTREQ0E0MSIsInZpc2l0b3JfaWQiOiI0OTM2NDU4NTc5NDEyMzcyMDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1fba20451cd6a697be79b6197b69563520447d4c759bb14505f9f6d106d84990 |
| hovercard-subject-tag | pull_request:152099785 |
| 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/4378/files |
| twitter:image | https://avatars.githubusercontent.com/u/6604116?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6604116?s=400&v=4 |
| og:image:alt | Added start and stop as keywords to range.index method.
I created a temporary range object on which indexing will be done. Is there a better way to decref the temporary range object?
https://bugs.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/4378/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4378%2Ffiles |
| 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 |
| 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/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/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/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%2F4378%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/4378/files |
| Reload | https://github.com/python/cpython/pull/4378/files |
| Reload | https://github.com/python/cpython/pull/4378/files |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| 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.3k
| 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 |
| 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 |
| nitishch | https://github.com/nitishch |
| python:main | https://github.com/python/cpython/tree/main |
| nitishch:bpo-28197 | https://github.com/nitishch/cpython/tree/bpo-28197 |
|
Conversation
6
| https://github.com/python/cpython/pull/4378 |
|
Commits
13
| https://github.com/python/cpython/pull/4378/commits |
|
Checks
0
| https://github.com/python/cpython/pull/4378/checks |
|
Files changed
| https://github.com/python/cpython/pull/4378/files |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
|
bpo-28197: Add start and stop keywords to range.index() method
| https://github.com/python/cpython/pull/4378/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/4378/files |
|
f73b88a
bpo-31942: Document optional support of start and stop in Sequence.in…
nitishch Nov 4, 2017
| https://github.com/python/cpython/pull/4378/commits/f73b88a5cc2198f64feae684725368ca0cce091d |
|
3660f6f
bpo-31942: Improved some documentation
nitishch Nov 4, 2017
| https://github.com/python/cpython/pull/4378/commits/3660f6fc8d6ef0383a4602eca5f90a0a9943ec29 |
|
c758e25
Pulled from master
nitishch Nov 5, 2017
| https://github.com/python/cpython/pull/4378/commits/c758e25e38894c9523bdeda5919399a069b665eb |
|
227a3d9
Changed range.index from taking only one argument to multiple arguments
nitishch Nov 6, 2017
| https://github.com/python/cpython/pull/4378/commits/227a3d907c0b8803f9db749f6992686fbadf2240 |
|
123ac17
Used slice on the range object
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/123ac17175c57a6d0fd0dc20e17dc22d40128c28 |
|
1682be8
By mistake had the changes of doc branch in this branch
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/1682be8607492065ca81eb3f8716dd3d84e4a7ae |
|
3d539d3
Corrected some indentation mistakes
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/3d539d3585aac4085cbacccc70caa411b576fc63 |
|
4e0e468
Some more indentation changes
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/4e0e468cb5409290752d5bdaf15e7c47080a85a1 |
|
0519c74
Previously didn't take care of decrefing. Corrected it now
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/0519c74cda2ca1e2a9bf1d9465c33cdfb1be3d12 |
|
0c133b0
Added NEWS file
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/0c133b0536eb0773a50f05999df8eba9b353ccb1 |
|
3678e20
Added formatting to the added news file
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/3678e20c7459c581681827fc27ef004596137a0c |
|
b52e9e9
Some whitespace changes made by make patchcheck
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/b52e9e969e8db6458a7f0d6e510928c73e29ba5f |
|
476c8c2
Added an explaining comment
nitishch Nov 12, 2017
| https://github.com/python/cpython/pull/4378/commits/476c8c2e587a3d596999e6c1ca679441e6f15ab5 |
|
Clear filters
| https://github.com/python/cpython/pull/4378/files |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
|
test_range.py
| https://github.com/python/cpython/pull/4378/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
2017-11-12-16-00-21.bpo-28197.63pLE7.rst
| https://github.com/python/cpython/pull/4378/files#diff-06bc28cee9ff367a2c01332c676086b0e54435b91efb39f3422875b704887b1d |
|
rangeobject.c
| https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
| Lib/test/test_range.py | https://github.com/python/cpython/pull/4378/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
View file
| https://github.com/nitishch/cpython/blob/476c8c2e587a3d596999e6c1ca679441e6f15ab5/Lib/test/test_range.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4378/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/4378/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
|
| https://github.com/python/cpython/pull/4378/files#diff-34ede011e3fd5660af3db245be7bd645d4c15fac138b477ac4be9be57ae5d30c |
| Misc/NEWS.d/next/Core and Builtins/2017-11-12-16-00-21.bpo-28197.63pLE7.rst | https://github.com/python/cpython/pull/4378/files#diff-06bc28cee9ff367a2c01332c676086b0e54435b91efb39f3422875b704887b1d |
|
View file
| https://github.com/nitishch/cpython/blob/476c8c2e587a3d596999e6c1ca679441e6f15ab5/Misc/NEWS.d/next/Core%20and%20Builtins/2017-11-12-16-00-21.bpo-28197.63pLE7.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4378/{{ revealButtonHref }} |
| Objects/rangeobject.c | https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
|
View file
| https://github.com/nitishch/cpython/blob/476c8c2e587a3d596999e6c1ca679441e6f15ab5/Objects/rangeobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4378/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
| shreyanavigyan | https://github.com/shreyanavigyan |
| Apr 14, 2021 | https://github.com/python/cpython/pull/4378/files#r613513347 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
| shreyanavigyan | https://github.com/shreyanavigyan |
| Apr 14, 2021 | https://github.com/python/cpython/pull/4378/files#r613524760 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4378/files |
|
| https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
|
| https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
|
| https://github.com/python/cpython/pull/4378/files#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d |
|
| 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 |