Title: "Argument Clinic How-To" misses `generate_global_objects` step · Issue #97956 · python/cpython · GitHub
Open Graph Title: "Argument Clinic How-To" misses `generate_global_objects` step · Issue #97956 · python/cpython
X Title: "Argument Clinic How-To" misses `generate_global_objects` step · Issue #97956 · python/cpython
Description: Documentation Right now our How-To Clinic guide does not mention that it is required to run python Tools/scripts/generate_global_objects.py command to generate global objects used by _Py_ID(), like in here: #define NUM_KEYWORDS 1 static ...
Open Graph Description: Documentation Right now our How-To Clinic guide does not mention that it is required to run python Tools/scripts/generate_global_objects.py command to generate global objects used by _Py_ID(), like...
X Description: Documentation Right now our How-To Clinic guide does not mention that it is required to run python Tools/scripts/generate_global_objects.py command to generate global objects used by _Py_ID(), like...
Opengraph URL: https://github.com/python/cpython/issues/97956
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Argument Clinic How-To\" misses `generate_global_objects` step","articleBody":"# Documentation\r\n\r\nRight now our [How-To Clinic guide](https://docs.python.org/3.12/howto/clinic.html) does not mention that it is required to run `python Tools/scripts/generate_global_objects.py` command to generate global objects used by `_Py_ID()`, like in here:\r\n\r\n```C\r\n #define NUM_KEYWORDS 1\r\n static struct {\r\n PyGC_Head _this_is_not_used;\r\n PyObject_VAR_HEAD\r\n PyObject *ob_item[NUM_KEYWORDS];\r\n } _kwtuple = {\r\n .ob_base = PyVarObject_HEAD_INIT(\u0026PyTuple_Type, NUM_KEYWORDS)\r\n .ob_item = { \u0026_Py_ID(only_keys), }, // \u003c--- Here!\r\n };\r\n #undef NUM_KEYWORDS\r\n```\r\n\r\nWith this command the build fails.\r\nI will send a PR to update docs today.\r\n\r\nCC @larryhastings :)","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2022-10-06T10:33:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/97956/cpython/issues/97956"}
| 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:06c2c8b4-812e-0f15-49a5-caf000694274 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8810:70D3D:55C5C8:76C7D5:69694CD8 |
| html-safe-nonce | c892b88fa4c17a9d7e47f04c5f71ef06bd1dd4c9af1b282390207276f4e0d2ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODEwOjcwRDNEOjU1QzVDODo3NkM3RDU6Njk2OTRDRDgiLCJ2aXNpdG9yX2lkIjoiNjQ5ODQwOTcxMzg5MDgzOTc2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 92edf71c82dd4578d3c8d940b9a54987e4794a4007326a98bc2e8d07ebab7b5a |
| hovercard-subject-tag | issue:1399315796 |
| 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/97956/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4250d1adef38f6a37a86cd77cb3dffd17ab309986110d1a5a8113e8eac034da1/python/cpython/issues/97956 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4250d1adef38f6a37a86cd77cb3dffd17ab309986110d1a5a8113e8eac034da1/python/cpython/issues/97956 |
| og:image:alt | Documentation Right now our How-To Clinic guide does not mention that it is required to run python Tools/scripts/generate_global_objects.py command to generate global objects used by _Py_ID(), like... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width