René's URL Explorer Experiment


Title: gh-141984: Reword and reorganize Subscription (and Slicing) docs by encukou · Pull Request #141985 · python/cpython · GitHub

Open Graph Title: gh-141984: Reword and reorganize Subscription (and Slicing) docs by encukou · Pull Request #141985 · python/cpython

X Title: gh-141984: Reword and reorganize Subscription (and Slicing) docs by encukou · Pull Request #141985 · python/cpython

Description: 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 way too. The PR also touches Data model documentation: I've tried to move details of the runtime behaviour there, and to de-duplicate (and cross-link) as needed. Similar for the slice attribute docs. Todo: Add a glossary entry for subscript -- the term this uses consistently for the key/index/whatever in the square brackets. Issue: gh-141984 📚 Documentation preview 📚: https://cpython-previews--141985.org.readthedocs.build/

Open Graph Description: 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...

X Description: 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 ...

Opengraph URL: https://github.com/python/cpython/pull/141985

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:034e0ca4-5228-4c03-81bd-693aa2858def
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB618:2780A3:1F6233A:2B06AA1:696AB4C0
html-safe-nonce7a79417dc183b73156bb2c841665470d40d2f2914591f95043182240f77de200
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjE4OjI3ODBBMzoxRjYyMzNBOjJCMDZBQTE6Njk2QUI0QzAiLCJ2aXNpdG9yX2lkIjoiNzI0NDA3MDEzMTU4OTYyNTAyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac89a6c134fb8df149c994770e78a91b65abf78afa94008ae6c5e7598dfae67bdb
hovercard-subject-tagpull_request:3048314878
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/141985/files
twitter:imagehttps://avatars.githubusercontent.com/u/302922?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/302922?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release41f276818bd204c4a30a0281fb3c576298d9474c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/python/cpython/pull/141985/files
Reloadhttps://github.com/python/cpython/pull/141985/files
Reloadhttps://github.com/python/cpython/pull/141985/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:expressions-subscriptionhttps://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 pagehttps://github.com/python/cpython/pull/141985/files
Please reload this pagehttps://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.rsthttps://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.rsthttps://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.rsthttps://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 pagehttps://github.com/python/cpython/pull/141985/files
Please reload this pagehttps://github.com/python/cpython/pull/141985/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.