summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRian Hunter <rianhunter@users.noreply.github.com>2025-01-03 13:07:07 (GMT)
committerGitHub <noreply@github.com>2025-01-03 13:07:07 (GMT)
commitb4f799b1e78ede17b41de9a2bc51b437a7e6dd74 (patch)
tree6b9c169612eefd8ee78b113bb39f2cb9c3aa24b0 /Misc
parentf21af186bf21c1c554209ac67d78d3cf99f7d7c0 (diff)
downloadcpython-b4f799b1e78ede17b41de9a2bc51b437a7e6dd74.zip
cpython-b4f799b1e78ede17b41de9a2bc51b437a7e6dd74.tar.gz
cpython-b4f799b1e78ede17b41de9a2bc51b437a7e6dd74.tar.bz2
gh-112015: Implement `ctypes.memoryview_at()` (GH-112018)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-11-12-21-53-40.gh-issue-112015.2WPRxE.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-11-12-21-53-40.gh-issue-112015.2WPRxE.rst b/Misc/NEWS.d/next/Library/2023-11-12-21-53-40.gh-issue-112015.2WPRxE.rst
new file mode 100644
index 0000000..4b58ec9
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-11-12-21-53-40.gh-issue-112015.2WPRxE.rst
@@ -0,0 +1,5 @@
+:func:`ctypes.memoryview_at` now exists to create a
+:class:`memoryview` object that refers to the supplied pointer and
+length. This works like :func:`ctypes.string_at` except it avoids a
+buffer copy, and is typically useful when implementing pure Python
+callback functions that are passed dynamically-sized buffers.