Title: Use footnotes for numbered notes in tables · Issue #137742 · python/cpython · GitHub
Open Graph Title: Use footnotes for numbered notes in tables · Issue #137742 · python/cpython
X Title: Use footnotes for numbered notes in tables · Issue #137742 · python/cpython
Description: Documentation In a few places, the docs include tables with numbered notes, similar to this: Cheese In Stock Red Leicester no Camembert yes (1) (2) (1) it's a bit runny (2) the cat's eaten it Often the notes are written using simple numb...
Open Graph Description: Documentation In a few places, the docs include tables with numbered notes, similar to this: Cheese In Stock Red Leicester no Camembert yes (1) (2) (1) it's a bit runny (2) the cat's eaten it Often...
X Description: Documentation In a few places, the docs include tables with numbered notes, similar to this: Cheese In Stock Red Leicester no Camembert yes (1) (2) (1) it's a bit runny (2) the cat's eaten ...
Opengraph URL: https://github.com/python/cpython/issues/137742
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use footnotes for numbered notes in tables","articleBody":"# Documentation\n\nIn a few places, the docs include tables with numbered notes, similar to this:\n\n\u003e | Cheese | In Stock |\n\u003e |---------------|--------------|\n\u003e | Red Leicester | no |\n\u003e | Camembert | yes (1) (2) |\n\u003e \n\u003e (1) it's a bit runny\n\u003e (2) the cat's eaten it\n\nOften the notes are written using simple numbered lists, which notably don't create links between the note references and their definitions. This can make viewing the notes somewhat tedious, particularly when the table is very long or when the same notes are shared by multiple tables.\n\nAnother way to format these notes is using Sphinx [footnotes](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#footnotes). Footnotes have the benefit of creating bi-directional links between the note entries and their references, which makes viewing a note and then navigating back to where you were much easier. The footnote definitions can be placed anywhere in the docs, so in particular they can be placed immediately after the table that references them. This is already done for a few tables in the current docs, e.g. in [`collections.abc`](https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes).\n\nI propose migrating some of the existing table notes to footnotes in cases where having the extra navigation links would be helpful. In particular, I think this would be useful for the [format code tables in the `datetime` docs](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes).\n\nThe result would look something like this:\n\n\u003e | Cheese | In Stock |\n\u003e |---------------|---------------|\n\u003e | Red Leicester | no |\n\u003e | Camembert | yes [^1] [^2] |\n\u003e \n\u003e [^1]: it's a bit runny\n\u003e [^2]: the cat's eaten it\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137743\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/brianschubert","@type":"Person","name":"brianschubert"},"datePublished":"2025-08-13T23:51:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/137742/cpython/issues/137742"}
| 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:3312730a-03c9-5615-89f2-aa569b8e371e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFA4:113F62:D43850:12563E0:696A8B37 |
| html-safe-nonce | 8763e1d76eec3ee45c8bb566ec958f9e8f2ec025e99cc5e36745d66c7e0a74c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkE0OjExM0Y2MjpENDM4NTA6MTI1NjNFMDo2OTZBOEIzNyIsInZpc2l0b3JfaWQiOiIyMTQ5OTY2NzQ1NDUyODMxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c70c603786e540898d46dbacacd9ea9dcf6ae1e2c81767c9bde4f57c29999a30 |
| hovercard-subject-tag | issue:3320223162 |
| 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/137742/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d0a135dc9e07b83a37457a6891092e7dd4df63cc2aa52dbd6327d7414a5ac81/python/cpython/issues/137742 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d0a135dc9e07b83a37457a6891092e7dd4df63cc2aa52dbd6327d7414a5ac81/python/cpython/issues/137742 |
| og:image:alt | Documentation In a few places, the docs include tables with numbered notes, similar to this: Cheese In Stock Red Leicester no Camembert yes (1) (2) (1) it's a bit runny (2) the cat's eaten it Often... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brianschubert |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| 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 | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width