Title: Improve documentation for common sequence methods · Issue #138465 · python/cpython · GitHub
Open Graph Title: Improve documentation for common sequence methods · Issue #138465 · python/cpython
X Title: Improve documentation for common sequence methods · Issue #138465 · python/cpython
Description: From @serhiy-storchaka in #101100 My suggestion for stdtypes.rst: Leave the statements and operators in the tables, but document all methods using normal Sphinx syntax, e.g.: .. method:: sequence.append(value, /) Then make anchors for li...
Open Graph Description: From @serhiy-storchaka in #101100 My suggestion for stdtypes.rst: Leave the statements and operators in the tables, but document all methods using normal Sphinx syntax, e.g.: .. method:: sequence.a...
X Description: From @serhiy-storchaka in #101100 My suggestion for stdtypes.rst: Leave the statements and operators in the tables, but document all methods using normal Sphinx syntax, e.g.: .. method:: sequence.a...
Opengraph URL: https://github.com/python/cpython/issues/138465
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve documentation for common sequence methods","articleBody":"_From @serhiy-storchaka in [#101100](https://github.com/python/cpython/issues/101100#issuecomment-3248107121)_\n\n\u003e My suggestion for `stdtypes.rst`:\n\u003e \n\u003e Leave the statements and operators in the tables, but document all methods using normal Sphinx syntax, e.g.:\n\u003e ```rst\n\u003e .. method:: sequence.append(value, /)\n\u003e ```\n\u003e Then make anchors for `list.append()`, `bytearray.append()`, `deque.append()`, etc linked to this definition (there is a way to do this without cluttering the text and index). For example:\n\u003e \n\u003e ```rst\n\u003e .. method:: list.append(value, /)\n\u003e bytearray.append(value, /)\n\u003e :no-typesetting:\n\u003e :no-index-entry:\n\u003e .. method:: sequence.append(value, /)\n\u003e ```\n\n \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-138474\n* gh-138560\n* gh-138567\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/AA-Turner","@type":"Person","name":"AA-Turner"},"datePublished":"2025-09-03T17:26:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/138465/cpython/issues/138465"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f1423af-f76c-6515-2f79-61f26d7d3f27 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C45C:B0660:ECCD1A:14B3C11:696A27E9 |
| html-safe-nonce | e24077c1537537818f5a0b1d526e01b96d2fd20f52934c48c16f08111b3f3ddd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDVDOkIwNjYwOkVDQ0QxQToxNEIzQzExOjY5NkEyN0U5IiwidmlzaXRvcl9pZCI6IjYwNzE4OTEwOTMxMzkxMDU3NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 286169f0eeff3c7d49d9c091888469fd24833a6c497dae3e8170185802deb65e |
| hovercard-subject-tag | issue:3380669855 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/138465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4903db4880f210e7bfea45be43acf8b6cd58c54c834758474c0ce42ba28c9a75/python/cpython/issues/138465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4903db4880f210e7bfea45be43acf8b6cd58c54c834758474c0ce42ba28c9a75/python/cpython/issues/138465 |
| og:image:alt | From @serhiy-storchaka in #101100 My suggestion for stdtypes.rst: Leave the statements and operators in the tables, but document all methods using normal Sphinx syntax, e.g.: .. method:: sequence.a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AA-Turner |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width