<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/ctypes/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/ctypes/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/ctypes/feature-requests/</id><updated>2013-11-06T23:16:45.457000Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Adding 128-bit integer support</title><link href="https://sourceforge.net/p/ctypes/feature-requests/8/" rel="alternate"/><published>2013-11-06T23:16:45.457000Z</published><updated>2013-11-06T23:16:45.457000Z</updated><author><name>Fil Mackay</name><uri>https://sourceforge.net/u/filmackay/</uri></author><id>https://sourceforge.netb24bc29ac572d551079f06b9bf384ede58a3fb5c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can the 128-bit integer type be added to ctypes please? This seems like a big gap, given the popularity of this type within C/C++ compilers now.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>test</title><link href="https://sourceforge.net/p/ctypes/feature-requests/7/" rel="alternate"/><published>2010-09-25T04:52:52Z</published><updated>2010-09-25T04:52:52Z</updated><author><name>Amir Gh</name><uri>https://sourceforge.net/u/amir571/</uri></author><id>https://sourceforge.neta76349d6ccc729fa4ad818f7f4219692aac55940</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;test&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating a restype supporting type</title><link href="https://sourceforge.net/p/ctypes/feature-requests/6/" rel="alternate"/><published>2009-03-26T15:14:05Z</published><updated>2009-03-26T15:14:05Z</updated><author><name>Jens Rantil</name><uri>https://sourceforge.net/u/ztyx/</uri></author><id>https://sourceforge.net459be03ddd67592ad765e628793a8e682d707465</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Adding support for classes to be sent as an argument using the argtypes attribute and from_param(...) method seems pretty straight forward. Can a similar extension be done to support the restype attribute, or will the errcheck attribute be needed to do this conversion on the result?&lt;/p&gt;
&lt;p&gt;More specifically I'd like to convert from ctypes arrays to NumPy arrays on the fly when calling a DLL function.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jens&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add automatic variable generation to xml2py.py</title><link href="https://sourceforge.net/p/ctypes/feature-requests/5/" rel="alternate"/><published>2007-02-28T11:38:10Z</published><updated>2007-02-28T11:38:10Z</updated><author><name>Michal J. Gajda</name><uri>https://sourceforge.net/u/korek/</uri></author><id>https://sourceforge.net67a1e7871dc127bb5b6602aa85c9e66ae2260fe0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;xml2py.py doesn't seem to generate code for uninitialized variables. Since it may be crucial for library interface (see errno.h), I attach the crude patch that does that.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add version info to DLL</title><link href="https://sourceforge.net/p/ctypes/feature-requests/4/" rel="alternate"/><published>2006-07-24T15:22:29Z</published><updated>2006-07-24T15:22:29Z</updated><author><name>Michael Kleehammer</name><uri>https://sourceforge.net/u/mkleehammer/</uri></author><id>https://sourceforge.net464fba1e57f3e90baa1a0ac19f7e3c582dd6093c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It appears that an MSI-based upgrade that include&lt;br /&gt;
_ctypes.pyd did not upgrade the file from 996 to 999. &lt;br /&gt;
I assume it is because there was no version information&lt;br /&gt;
in the DLL.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;This would be a big help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Byte ordering</title><link href="https://sourceforge.net/p/ctypes/feature-requests/3/" rel="alternate"/><published>2005-11-04T15:00:07Z</published><updated>2005-11-04T15:00:07Z</updated><author><name>nicolas pinault</name><uri>https://sourceforge.net/u/nico38/</uri></author><id>https://sourceforge.net682e2e862449d8ba9c31283ddcd3faa6f3242eca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need to access data structures which are in&lt;br /&gt;
big-endian format. I would like to be able to declare&lt;br /&gt;
and use Structures which manage this automaticaly. A&lt;br /&gt;
keyword could say the structure contains big-endian&lt;br /&gt;
data. When accessing this structure fields, byte&lt;br /&gt;
ordering would be done automaticaly.&lt;/p&gt;
&lt;p&gt;Nicolas Pinault&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SAFEARRAY</title><link href="https://sourceforge.net/p/ctypes/feature-requests/2/" rel="alternate"/><published>2004-11-26T09:46:17Z</published><updated>2004-11-26T09:46:17Z</updated><author><name>Luca Casagrande</name><uri>https://sourceforge.net/u/luke333/</uri></author><id>https://sourceforge.neta860493f07fab82c329153ebe0d3072274d9376f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need for implementation of SAFEARRAY type.&lt;br /&gt;
In fact there are a lot of methods that use this type.&lt;/p&gt;
&lt;p&gt;The problem is the following:&lt;/p&gt;
&lt;p&gt;I use the readtlb.py tool for translate a Type Libary into &lt;br /&gt;
a python file; the result is a file in which the COM types &lt;br /&gt;
are translated according to the ctypes rules. However &lt;br /&gt;
the SAFEARRAY type is not recognized by the python &lt;br /&gt;
interpreter and I can't instantiate the class(es). Looking &lt;br /&gt;
in depth in to the ctypes module there is no evidence of &lt;br /&gt;
the SAFEARRAY Implementation.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>add support for accessing functions via pointer</title><link href="https://sourceforge.net/p/ctypes/feature-requests/1/" rel="alternate"/><published>2004-09-30T13:14:06Z</published><updated>2004-09-30T13:14:06Z</updated><author><name>Patrick Mueller</name><uri>https://sourceforge.net/u/pmuellr/</uri></author><id>https://sourceforge.net8a45aff6df9b37feb1d2cdba4bf0608e52fef582</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a requirement to be able to call functions that&lt;br /&gt;
I can only get to via pointer.  ctypes itself does not&lt;br /&gt;
appear to support this, but _ctypes does.  I ended up&lt;br /&gt;
doing something like below, which appears to work fine.&lt;br /&gt;
I'd like to see first class support for this in ctypes&lt;br /&gt;
itself.  Would also need to support the Windows variant&lt;br /&gt;
as well (but probably not the Python one).&lt;/p&gt;
&lt;p&gt;import ctypes&lt;br /&gt;
import _ctypes&lt;/p&gt;
&lt;p&gt;#--------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
#--------------------------------------------------------------------&lt;br /&gt;
class FunctionPtr(_ctypes.CFuncPtr):&lt;br /&gt;
_flags_   = _ctypes.FUNCFLAG_CDECL&lt;br /&gt;
_restype_ = ctypes.c_int &lt;/p&gt;
&lt;p&gt;#--------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
#--------------------------------------------------------------------&lt;br /&gt;
functionPtr = 0  # get a pointer to the function somehow&lt;/p&gt;
&lt;p&gt;function = FunctionPtr(functionPtr)&lt;/p&gt;
&lt;p&gt;result = function(arg1,arg2)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>