| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:034e0ca4-5228-4c03-81bd-693aa2858def |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B618:2780A3:1F6233A:2B06AA1:696AB4C0 |
| html-safe-nonce | 7a79417dc183b73156bb2c841665470d40d2f2914591f95043182240f77de200 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjE4OjI3ODBBMzoxRjYyMzNBOjJCMDZBQTE6Njk2QUI0QzAiLCJ2aXNpdG9yX2lkIjoiNzI0NDA3MDEzMTU4OTYyNTAyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 89a6c134fb8df149c994770e78a91b65abf78afa94008ae6c5e7598dfae67bdb |
| hovercard-subject-tag | pull_request:3048314878 |
| 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/141985/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | This merges the Subscriptions and Slicings sections in the language reference. From the parser's point of view, slicing is a special case of subscription, and it makes sense to document it that... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/141985/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141985%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%2F141985%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/141985/files |
| Reload | https://github.com/python/cpython/pull/141985/files |
| Reload | https://github.com/python/cpython/pull/141985/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/141985/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/141985/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 |
| encukou | https://github.com/encukou |
| python:main | https://github.com/python/cpython/tree/main |
| encukou:expressions-subscription | https://github.com/encukou/cpython/tree/expressions-subscription |
|
Conversation
20
| https://github.com/python/cpython/pull/141985 |
|
Commits
19
| https://github.com/python/cpython/pull/141985/commits |
|
Checks
24
| https://github.com/python/cpython/pull/141985/checks |
|
Files changed
5
| https://github.com/python/cpython/pull/141985/files |
|
gh-141984: Reword and reorganize Subscription (and Slicing) docs
| https://github.com/python/cpython/pull/141985/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/141985/files |
|
7d892d3
Start on Subscriptions and slicing
encukou Sep 10, 2025
| https://github.com/python/cpython/pull/141985/commits/7d892d328753fe7153b17b4072020a9f57e28c3c |
|
bb70707
Continue Subscriptions and slicing
encukou Sep 24, 2025
| https://github.com/python/cpython/pull/141985/commits/bb7070737de222d429cb51b1b09c2854bac06b4f |
|
0cd76e6
Reorganize, add sections
encukou Oct 29, 2025
| https://github.com/python/cpython/pull/141985/commits/0cd76e6f84135c53bfceabac70ac015489afa4a6 |
|
c8d0f9e
Continue rewording
encukou Oct 29, 2025
| https://github.com/python/cpython/pull/141985/commits/c8d0f9ef8437f79658252a71edfc5eaecec5d359 |
|
d3e1c13
Merge in the main branch
encukou Nov 26, 2025
| https://github.com/python/cpython/pull/141985/commits/d3e1c13916da0bd0df46fa4aa1665099b4ec09d1 |
|
e755b5d
More work here
encukou Nov 26, 2025
| https://github.com/python/cpython/pull/141985/commits/e755b5d5d7c5ea503abb05ff8730e3b64fbbc61a |
|
0aa0256
A correction and a simplification
encukou Nov 26, 2025
| https://github.com/python/cpython/pull/141985/commits/0aa0256e507d7f95a2606a3510bd61dfa1f8884a |
|
ec68594
Apply suggestions from code review
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/ec68594de7ca306c63549aa55ff98b521507af5a |
|
3495d74
Start on glossary entries
encukou Nov 27, 2025
| https://github.com/python/cpython/pull/141985/commits/3495d74c282ec0b58fccd1e921c6994dc388732f |
|
9e8aafb
Merge subscriptions and slicings in simple_stmts.rst
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/9e8aafb553aa4444d594ce2044667b4cb2a0f105 |
|
bb3f441
Continue on glossary
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/bb3f44187de9348f62137ce440d2b561c538df00 |
|
dadc1f3
Plural section names, priority table clarification
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/dadc1f301f6463ab723185f3b870d61769aa85f7 |
|
6492007
Improve glossary entries
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/64920072664f586f2b19dc4bfe5964503de7fcfa |
|
26daff2
Merge in the main branch
encukou Jan 7, 2026
| https://github.com/python/cpython/pull/141985/commits/26daff2473a57703375ae637437145c552a96e97 |
|
a9c6d8d
Apply suggestions from code review
encukou Jan 7, 2026
| https://github.com/python/cpython/pull/141985/commits/a9c6d8d11660a16189692b25fad6ac73e83be102 |
|
7b3e41d
Add a 'continuing' comment to examples that use SubscriptionDemo
encukou Jan 7, 2026
| https://github.com/python/cpython/pull/141985/commits/7b3e41d3821e404446f2107b092d37efd8ba7cda |
|
5e4d1d9
Add colon
encukou Jan 7, 2026
| https://github.com/python/cpython/pull/141985/commits/5e4d1d9df0bc613a56531c1a19a964d4cc31feff |
|
b489b76
Use the term "special method"
encukou Dec 3, 2025
| https://github.com/python/cpython/pull/141985/commits/b489b7684094fe8660c1e7c739daf46168f54ba3 |
|
aa56eb8
Link the new terms, *key* and *index*
encukou Jan 7, 2026
| https://github.com/python/cpython/pull/141985/commits/aa56eb84763cc5def2354d723b1e027b84034312 |
|
Clear filters
| https://github.com/python/cpython/pull/141985/files |
| Please reload this page | https://github.com/python/cpython/pull/141985/files |
| Please reload this page | https://github.com/python/cpython/pull/141985/files |
|
glossary.rst
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
functions.rst
| https://github.com/python/cpython/pull/141985/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439 |
|
datamodel.rst
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
expressions.rst
| https://github.com/python/cpython/pull/141985/files#diff-c7ab338b9f88f5c444cde36aa48132cf5534500c6969a3fd2c7680234e87afd6 |
|
simple_stmts.rst
| https://github.com/python/cpython/pull/141985/files#diff-300d3fafb76c1066e44118597e6707da9b20127b7b3a1fe35668f5c41c69e0a5 |
| Doc/glossary.rst | https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
View file
| https://github.com/python/cpython/blob/aa56eb84763cc5def2354d723b1e027b84034312/Doc/glossary.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/141985/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
|
| https://github.com/python/cpython/pull/141985/files#diff-dfb52ee6e68075f904da6e69ed1799c5cbf1185c279968a807787d69ae2e8cf5 |
| Doc/library/functions.rst | https://github.com/python/cpython/pull/141985/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439 |
|
View file
| https://github.com/python/cpython/blob/aa56eb84763cc5def2354d723b1e027b84034312/Doc/library/functions.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/141985/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/141985/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439 |
|
| https://github.com/python/cpython/pull/141985/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L113 |
| Doc/reference/datamodel.rst | https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
View file
| https://github.com/python/cpython/blob/aa56eb84763cc5def2354d723b1e027b84034312/Doc/reference/datamodel.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/141985/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
|
| https://github.com/python/cpython/pull/141985/files#diff-9125871b063a1ef80aa4bd3e46d7060921032c8437160c7cb8c1497756b02d61 |
| Please reload this page | https://github.com/python/cpython/pull/141985/files |
| Please reload this page | https://github.com/python/cpython/pull/141985/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 |