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

Created on 2010-04-21 07:17 by techtonik, last changed 2010-11-25 04:13 by ysj.ray.

Messages (2)
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.
History
Date User Action Args
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