Title: Add tests to verify the behavior of `_ctypes.CopyComPointer`. · Issue #127183 · python/cpython · GitHub
Open Graph Title: Add tests to verify the behavior of `_ctypes.CopyComPointer`. · Issue #127183 · python/cpython
X Title: Add tests to verify the behavior of `_ctypes.CopyComPointer`. · Issue #127183 · python/cpython
Description: Feature or enhancement Proposal: There are other untested features related to COM besides COMError. _ctypes.CopyComPointer, as the name suggests, copies a COM pointer from src to dst. It also manages reference counts before and after the...
Open Graph Description: Feature or enhancement Proposal: There are other untested features related to COM besides COMError. _ctypes.CopyComPointer, as the name suggests, copies a COM pointer from src to dst. It also manag...
X Description: Feature or enhancement Proposal: There are other untested features related to COM besides COMError. _ctypes.CopyComPointer, as the name suggests, copies a COM pointer from src to dst. It also manag...
Opengraph URL: https://github.com/python/cpython/issues/127183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tests to verify the behavior of `_ctypes.CopyComPointer`.","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nThere are other untested features related to COM besides [`COMError`](https://docs.python.org/3.14/library/ctypes.html#ctypes.COMError).\n\n[`_ctypes.CopyComPointer`](https://github.com/python/cpython/blob/39e60aeb3837f1f23d8b7f30d3b8d9faf805ef88/Modules/_ctypes/callproc.c#L1463-L1495), as the name suggests, copies a COM pointer from *src* to *dst*.\nIt also manages reference counts before and after the copy.\n\nIn the future, this functionality may also [need to be made public similar to `COMError`](https://github.com/python/cpython/pull/126686).\nHowever, my plan is to first add tests to confirm its current behavior, and then consider making it public and adding documentation.\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-127184\n* gh-127251\n* gh-127252\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/junkmd","@type":"Person","name":"junkmd"},"datePublished":"2024-11-23T00:53:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/127183/cpython/issues/127183"}
| 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:dc30a5a6-acc8-66f9-f146-fbdb8ef819b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 915E:1A456E:15073DE:1C64866:6A62D50C |
| html-safe-nonce | a009fcf11a7668e57b90acc32ed0ca4c9f977cd36c00c470cd9366630b5a630c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTVFOjFBNDU2RToxNTA3M0RFOjFDNjQ4NjY6NkE2MkQ1MEMiLCJ2aXNpdG9yX2lkIjoiNzA2NDUxNTIxNDE2MDYxNDY2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f381f0206f6934369dbdc1d331703043c9f1c1f8634ba8251ff429219c1c35a6 |
| hovercard-subject-tag | issue:2685049337 |
| 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/127183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63062e455cc135f81533e0ed344754a924c07332587a3da95f3a9fe0942325ec/python/cpython/issues/127183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63062e455cc135f81533e0ed344754a924c07332587a3da95f3a9fe0942325ec/python/cpython/issues/127183 |
| og:image:alt | Feature or enhancement Proposal: There are other untested features related to COM besides COMError. _ctypes.CopyComPointer, as the name suggests, copies a COM pointer from src to dst. It also manag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | junkmd |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width