This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: doc: ctypes no need to explicitly allocate writable memory with Structure
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.10
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: theller Nosy List: docs@python, georg.brandl, orsenthil, techtonik, theller, ysj.ray
Priority: normal Keywords:

Created on 2010-04-21 07:17 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg103804 - (view) Author: anatoly techtonik (techtonik) Date: 2010-04-21 07:17
ctypes docs should mention that Structures can be passed with byref() to functions expecting pointer to mutable memory without explicit allocation of mutable memory block with create_string_buffer() or similar function.
msg122328 - (view) Author: ysj.ray (ysj.ray) Date: 2010-11-25 04:13
I think not only Structures but also other ctypes can be passed with byref() to functions expecting pointer to mutable memory.
msg383958 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2020-12-29 04:41
This is a not a bug, it asks for parameter types to explained. API documentation reference should provide the guidance.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52727
2020-12-29 04:41:38orsenthilsetstatus: open -> closed

versions: + Python 3.10, - Python 2.6, Python 2.7
nosy: + orsenthil

messages: + msg383958
resolution: wont fix
stage: resolved
2014-10-04 21:15:14francismbsettype: enhancement
2010-11-25 04:13:49ysj.raysetnosy: + ysj.ray
messages: + msg122328
2010-05-29 20:51:09eric.araujosetpriority: normal
assignee: flox -> theller
nosy: + theller, - flox
2010-05-29 20:49:38eric.araujosetpriority: normal -> (no value)
assignee: theller -> flox

nosy: + docs@python, flox, - theller
2010-04-24 13:28:49georg.brandlsetassignee: georg.brandl -> theller

nosy: + theller
2010-04-21 07:17:05techtonikcreate