ctypes 0.6.3 released

Discussion in 'Python' started by Thomas Heller, Jan 16, 2004.

  1. It's release day ;-)

    ctypes 0.6.3 released
    =====================

    Overview

    'ctypes' is a Python package to create and manipulate C data types
    in Python, and to call functions in dynamic link libraries/shared
    dlls. It allows wrapping these libraries in pure Python.

    It works on Windows, Linux and MacOS X (the latter require that
    your machine is supported by libffi).


    Changes

    A critical bug with pointer instances was fixed, this makes the
    'incomplete types' sample code in the tutorial actually work.

    All ctypes objects are now correctly garbarge collected. This
    *may* lead to crashes in your program (especially with callback
    functions, or pointers handed out to longer running C code). You
    must keep a reference in Python to any object as long as it is
    used in foreign C code.

    All other known bugs have been fixed.

    Again, a lot of changes to the COM package, but all this is still work in
    progress and unstable, and it has to be properly documented.

    Homepage

    <http://starship.python.net/crew/theller/ctypes/>

    Enjoy,

    Thomas
     
    Thomas Heller, Jan 16, 2004
    #1
    1. Advertising

  2. Thomas Heller

    Ganesan R Guest

    >>>>> "Thomas" == Thomas Heller <> writes:

    > It works on Windows, Linux and MacOS X (the latter require that
    > your machine is supported by libffi).


    Hi,

    I maintain the ctypes Debian package. The following patch allows ctypes to
    be built on 64-bit archs.

    --- ctypes-0.6.3.orig/source/callproc.c
    +++ ctypes-0.6.3/source/callproc.c
    @@ -549,11 +549,11 @@
    #if (SIZEOF_LONG_LONG == 8 && SIZEOF_LONG == 4)
    #undef ffi_type_ulong
    #define ffi_type_ulong ffi_type_uint32
    -#define ffi_type_ulonglong ffi_type_uint64
    #undef ffi_type_slong
    #define ffi_type_slong ffi_type_sint32
    -#define ffi_type_slonglong ffi_type_sint64
    #endif
    +#define ffi_type_ulonglong ffi_type_uint64
    +#define ffi_type_slonglong ffi_type_sint64

    Ganesan

    --
    Ganesan R (rganesan at debian dot org) | http://www.debian.org/~rganesan/
    1024D/5D8C12EA, fingerprint F361 84F1 8D82 32E7 1832 6798 15E0 02BA 5D8C 12EA
     
    Ganesan R, Jan 20, 2004
    #2
    1. Advertising

  3. Ganesan R <> writes:

    >>>>>> "Thomas" == Thomas Heller <> writes:

    >
    >> It works on Windows, Linux and MacOS X (the latter require that
    >> your machine is supported by libffi).

    >
    > Hi,
    >
    > I maintain the ctypes Debian package. The following patch allows ctypes to
    > be built on 64-bit archs.
    >
    > --- ctypes-0.6.3.orig/source/callproc.c
    > +++ ctypes-0.6.3/source/callproc.c
    > @@ -549,11 +549,11 @@
    > #if (SIZEOF_LONG_LONG == 8 && SIZEOF_LONG == 4)
    > #undef ffi_type_ulong
    > #define ffi_type_ulong ffi_type_uint32
    > -#define ffi_type_ulonglong ffi_type_uint64
    > #undef ffi_type_slong
    > #define ffi_type_slong ffi_type_sint32
    > -#define ffi_type_slonglong ffi_type_sint64
    > #endif
    > +#define ffi_type_ulonglong ffi_type_uint64
    > +#define ffi_type_slonglong ffi_type_sint64
    >
    > Ganesan


    Cool, thanks. I've applied this in cvs.

    Thomas

    PS: Can you post (or send by private email, if it is large, the output
    of the test suite: 'python setup.py test' ?
     
    Thomas Heller, Jan 20, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henk Punt
    Replies:
    0
    Views:
    397
    Henk Punt
    Jul 23, 2004
  2. Thomas Heller

    ctypes 0.9.1 released

    Thomas Heller, Sep 16, 2004, in forum: Python
    Replies:
    1
    Views:
    354
    Fernando Perez
    Sep 17, 2004
  3. Thomas Heller

    ctypes 0.9.2 released

    Thomas Heller, Oct 28, 2004, in forum: Python
    Replies:
    19
    Views:
    625
    Paul Watson
    Nov 27, 2004
  4. Thomas Heller

    [Ann] ctypes 0.9.5 released

    Thomas Heller, Mar 12, 2005, in forum: Python
    Replies:
    0
    Views:
    331
    Thomas Heller
    Mar 12, 2005
  5. Replies:
    0
    Views:
    504
Loading...

Share This Page