T
Thomas Heller
ctypes 1.0.2 released - May 15, 2007
====================================
Overview
ctypes is an advanced ffi (Foreign Function Interface) package for
Python 2.3 and higher.
ctypes allows to call functions exposed from dlls/shared libraries
and has extensive facilities to create, access and manipulate
simple and complicated C data types in Python - in other words:
wrap libraries in pure Python. It is even possible to implement C
callback functions in pure Python.
ctypes runs on Windows, Windows CE, MacOS X, Linux, Solaris,
FreeBSD, OpenBSD. It may also run on other systems, provided that
libffi supports this platform.
Changes in 1.0.2
This is exactly the same version that is distibuted with Python 2.5.1;
made available as add-on package for Python 2.3 and Python 2.4. No
new features, only bugfixes have been applied:
The version number of the ctypes package was changed to "1.0.2".
Bug #1563807: _ctypes built on AIX fails with ld ffi error.
Bug #1598620: A ctypes Structure cannot contain itself.
Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
ctypes isn't considered as requiring executable stacks.
Bug #1651235: When a tuple was passed to a ctypes function call,
Python would crash instead of raising an error.
Fix bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
returned string up to the first NUL character.
Bug #1610795: ctypes.util.find_library works now on BSD systems.
ctypes callback functions only support 'fundamental' data types as
result type. Raise an error when something else is used. This is a
partial fix for Bug #1574584.
Changes in 1.0.1
If the Python part of a ctypes callback function returns None, and
this cannot be converted to the required C type, an exception is
printed with PyErr_WriteUnraisable. Before this change, the C
callback returned arbitrary values to the calling code.
The __repr__ method of a NULL ctypes.py_object() no longer raises
an exception.
This release contains exactly the same code as the ctypes package
included in Python 2.5.
Changes in 1.0.0
Better support for comtypes. More target platforms for OpenBSD.
Several small bugfixes.
This is exactly the same version as included in Python 2.5b3.
Download
Downloads are available in the sourceforge files section
<http://sourceforge.net/project/showfiles.php?group_id=71702>
Binary windows installers, which contain compiled extension
modules, are also available, be sure to download the correct one
for the Python version you are using.
Homepage
<http://starship.python.net/crew/theller/ctypes/>
Enjoy,
Thomas
====================================
Overview
ctypes is an advanced ffi (Foreign Function Interface) package for
Python 2.3 and higher.
ctypes allows to call functions exposed from dlls/shared libraries
and has extensive facilities to create, access and manipulate
simple and complicated C data types in Python - in other words:
wrap libraries in pure Python. It is even possible to implement C
callback functions in pure Python.
ctypes runs on Windows, Windows CE, MacOS X, Linux, Solaris,
FreeBSD, OpenBSD. It may also run on other systems, provided that
libffi supports this platform.
Changes in 1.0.2
This is exactly the same version that is distibuted with Python 2.5.1;
made available as add-on package for Python 2.3 and Python 2.4. No
new features, only bugfixes have been applied:
The version number of the ctypes package was changed to "1.0.2".
Bug #1563807: _ctypes built on AIX fails with ld ffi error.
Bug #1598620: A ctypes Structure cannot contain itself.
Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
ctypes isn't considered as requiring executable stacks.
Bug #1651235: When a tuple was passed to a ctypes function call,
Python would crash instead of raising an error.
Fix bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
returned string up to the first NUL character.
Bug #1610795: ctypes.util.find_library works now on BSD systems.
ctypes callback functions only support 'fundamental' data types as
result type. Raise an error when something else is used. This is a
partial fix for Bug #1574584.
Changes in 1.0.1
If the Python part of a ctypes callback function returns None, and
this cannot be converted to the required C type, an exception is
printed with PyErr_WriteUnraisable. Before this change, the C
callback returned arbitrary values to the calling code.
The __repr__ method of a NULL ctypes.py_object() no longer raises
an exception.
This release contains exactly the same code as the ctypes package
included in Python 2.5.
Changes in 1.0.0
Better support for comtypes. More target platforms for OpenBSD.
Several small bugfixes.
This is exactly the same version as included in Python 2.5b3.
Download
Downloads are available in the sourceforge files section
<http://sourceforge.net/project/showfiles.php?group_id=71702>
Binary windows installers, which contain compiled extension
modules, are also available, be sure to download the correct one
for the Python version you are using.
Homepage
<http://starship.python.net/crew/theller/ctypes/>
Enjoy,
Thomas