[New-bugs-announce] [issue1796] ctypes should allow a tuple when an Array is expected

Thomas Heller report at bugs.python.org
Fri Jan 11 20:17:08 CET 2008


New submission from Thomas Heller:

Another ctypes patch for discussion, if someone cares.

This patch allows to pass a tuple of the correct size, a ctypes pointer
to the correct itemtype, or None to foreign functions that expect ctypes
array instances.  'None' is passed as a NULL pointer.

Currently, only array instances are accepted.

----------
assignee: theller
components: Extension Modules
files: ctypes-arrays.patch
keywords: patch
messages: 59738
nosy: theller
severity: normal
status: open
title: ctypes should allow a tuple when an Array is expected
type: rfe
versions: Python 2.6
Added file: http://bugs.python.org/file9127/ctypes-arrays.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1796>
__________________________________


More information about the New-bugs-announce mailing list