Title: Add examples for all Python features in doc · Issue #127489 · python/cpython · GitHub
Open Graph Title: Add examples for all Python features in doc · Issue #127489 · python/cpython
X Title: Add examples for all Python features in doc · Issue #127489 · python/cpython
Description: Feature or enhancement Proposal: Doc text about id func ... Example id("string") >>>46764578 Has this already been discussed elsewhere? This is a minor feature, which does not need previous discussion elsewhere Links to previous discussi...
Open Graph Description: Feature or enhancement Proposal: Doc text about id func ... Example id("string") >>>46764578 Has this already been discussed elsewhere? This is a minor feature, which does not need previous discuss...
X Description: Feature or enhancement Proposal: Doc text about id func ... Example id("string") >>>46764578 Has this already been discussed elsewhere? This is a minor feature, which does not ne...
Opengraph URL: https://github.com/python/cpython/issues/127489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add examples for all Python features in doc","articleBody":"# Feature or enhancement\r\n\r\n### Proposal:\r\n\r\nDoc text about id func\r\n...\r\nExample \r\n```python\r\n id(\"string\")\r\n\u003e\u003e\u003e46764578\r\n```\r\n\r\n\r\n### Has this already been discussed elsewhere?\r\n\r\nThis is a minor feature, which does not need previous discussion elsewhere\r\n\r\n### Links to previous discussion of this feature:\r\n\r\nIn Rust, all std features have one or more examples.\r\n\r\nPlease, add in doc 1, 2 examples with code. It's need for simple visualisation, demonstrating features.\r\n\r\nhex func have examples, its cool!\r\nhttps://docs.python.org/3/library/functions.html#hex\r\n\r\nBut, id func haven't example \r\nhttps://docs.python.org/3/library/functions.html#id\r\n\r\nI think that in general everything that is in Python in the documentation should be with at least one example of how to apply it. Let's take an example from Rust!\r\n\r\nThis is a big problem, because it is not clear how to apply the language features and in what situation. a small example will give me an idea of how the correct application of features looks like.","author":{"url":"https://github.com/ArtemIsmagilov","@type":"Person","name":"ArtemIsmagilov"},"datePublished":"2024-12-01T19:05:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/127489/cpython/issues/127489"}
| 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:bcc8c91d-4e6c-acf6-6b38-8d2d2b3f2e4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8BA:BAB60:2BFCC8E:39CA879:696B7795 |
| html-safe-nonce | 3c37968b682d3ae97bb7cd9e20e3fbcaf39dc72b950682fb2d2573d0178f73d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEJBOkJBQjYwOjJCRkNDOEU6MzlDQTg3OTo2OTZCNzc5NSIsInZpc2l0b3JfaWQiOiI3NDk5NTI4Mzk1NDQ0NDE4NDU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 325aa4d9ce8caf57d58f8b169569fa127d6aac85d2f28e76289d4bc77b41d96d |
| hovercard-subject-tag | issue:2709686187 |
| 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/127489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29648b9e3c8f585e254df9519be503bf16ef96efe1c3ebac87d29ad2478986ea/python/cpython/issues/127489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29648b9e3c8f585e254df9519be503bf16ef96efe1c3ebac87d29ad2478986ea/python/cpython/issues/127489 |
| og:image:alt | Feature or enhancement Proposal: Doc text about id func ... Example id("string") >>>46764578 Has this already been discussed elsewhere? This is a minor feature, which does not need previous discuss... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ArtemIsmagilov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width