Title: Test Limited API in _testcapi module · Issue #95991 · python/cpython · GitHub
Open Graph Title: Test Limited API in _testcapi module · Issue #95991 · python/cpython
X Title: Test Limited API in _testcapi module · Issue #95991 · python/cpython
Description: The Limited API is currently tested in xxlimited module(s), which isn't a great location since the module serves as a “tutorial” example of how to make a module. There's no room for advanced stuff or edge cases. Testing Limited API toget...
Open Graph Description: The Limited API is currently tested in xxlimited module(s), which isn't a great location since the module serves as a “tutorial” example of how to make a module. There's no room for advanced stuff ...
X Description: The Limited API is currently tested in xxlimited module(s), which isn't a great location since the module serves as a “tutorial” example of how to make a module. There's no room for advance...
Opengraph URL: https://github.com/python/cpython/issues/95991
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test Limited API in _testcapi module","articleBody":"The Limited API is currently tested in `xxlimited` module(s), which isn't a great location since the module serves as a “tutorial” example of how to make a module. There's no room for advanced stuff or edge cases.\r\nTesting Limited API together with other C API is complicated, because:\r\n\r\n- Limited API needs to be enabled per source file\r\n- Some builds don't support Limited API, so Limited API tests must be skipped on those builds.\r\n (Currently this is `Py_TRACE_REFS`, but that may change.)\r\n- `Py_LIMITED_API` must be defined before `\u003cPython.h\u003e` is included.\r\n\r\nWith #95505 (splitting `_testcapi` module into several source files), the first complication is solved. I'd like to add helpers for the others, to make testing Limited API easy.\r\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2022-08-15T09:17:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/95991/cpython/issues/95991"}
| 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:e57d3411-5d79-99db-b7b6-0c8bb389b8c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 826A:4ACE2:2449667:326247E:69694CEA |
| html-safe-nonce | f6efc4410f59e1bbf140753eea920e10b68f3d8e59296e5e34b5e9a0e7cd6d4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjZBOjRBQ0UyOjI0NDk2Njc6MzI2MjQ3RTo2OTY5NENFQSIsInZpc2l0b3JfaWQiOiI1OTAxMzIxMTE0MTMzMDIzOTc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7db416816901c93691086130fc0ca34dc5544fe982954e779115084449dfb803 |
| hovercard-subject-tag | issue:1338740953 |
| 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/95991/issue_layout |
| twitter:image | https://opengraph.githubassets.com/304a19081de671069784d2953a89f90a5d094225e34248ad8c880c50e5b389fa/python/cpython/issues/95991 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/304a19081de671069784d2953a89f90a5d094225e34248ad8c880c50e5b389fa/python/cpython/issues/95991 |
| og:image:alt | The Limited API is currently tested in xxlimited module(s), which isn't a great location since the module serves as a “tutorial” example of how to make a module. There's no room for advanced stuff ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | encukou |
| 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