Title: gh-135755: Document __future__.* and CO_* as proper Sphinx objects by encukou · Pull Request #135980 · python/cpython · GitHub
Open Graph Title: gh-135755: Document __future__.* and CO_* as proper Sphinx objects by encukou · Pull Request #135980 · python/cpython
X Title: gh-135755: Document __future__.* and CO_* as proper Sphinx objects by encukou · Pull Request #135980 · python/cpython
Description: __future__ feature descriptions and CO_ C macros were documented in prose, but lacked Sphinx markup that marked them as Python attributes and C macros. For example: Searching for “nested scopes” yields full-text results only Searching for “CO_GENERATOR” yields “inspect.CO_GENERATOR (Python data, in inspect — Inspect live objects)”, but no C API. This affects users of the Intersphinx inventory as well. This patch adds the Sphinx definintions, and puts them in list-tables to make the ReST more maintainabile. Issue: gh-135755 📚 Documentation preview 📚: https://cpython-previews--135980.org.readthedocs.build/
Open Graph Description: __future__ feature descriptions and CO_ C macros were documented in prose, but lacked Sphinx markup that marked them as Python attributes and C macros. For example: Searching for “nested scopes” y...
X Description: __future__ feature descriptions and CO_ C macros were documented in prose, but lacked Sphinx markup that marked them as Python attributes and C macros. For example: Searching for “nested scopes” y...
Opengraph URL: https://github.com/python/cpython/pull/135980
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:c167cd76-93c3-18d9-7d10-e5e19f2127d0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B532:2C0B66:36A0CF2:4807DD8:69956B06 |
| html-safe-nonce | 0e67db8868e13ca96ba30fbea4f8383e8d5d88d1a235adbc35c82a9a730fb0b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTMyOjJDMEI2NjozNkEwQ0YyOjQ4MDdERDg6Njk5NTZCMDYiLCJ2aXNpdG9yX2lkIjoiNjg0ODA1Nzc3ODc4MDg1OTE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d64082ed76407562a70a28b2c3e8e3534732ba7fff21b0eb613a78c7bc9af447 |
| hovercard-subject-tag | pull_request:2620985470 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/135980/commits/875fbcb594eea0196386bd72ab138e4c36aac658 |
| 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 | __future__ feature descriptions and CO_ C macros were documented in prose, but lacked Sphinx markup that marked them as Python attributes and C macros. For example: Searching for “nested scopes” y... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cac7d4a5a6053f6655d0c3e8bfe5fd7a55c216fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width