Re: ctypes 0.9.2 released

From: Ian Bicking (ianb_at_colorstudy.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 13:27:45 -0500
To: Just <just@xs4all.nl>

Just wrote:
>>One of the perceived strengths of Python is the fact that it
>>integrates well with the platforms it is running on, so it's not an
>>insulated box like Java.
>
>
> Another one of Pythons perceived strengths is that if you get a
> segfault, it's a bug in Python. With ctypes that will no longer be as
> clear.

It's always been the case that C extensions can cause segfaults. This
is just a tool for incorporating C extensions, without writing any extra
C. It even says "c" right in the name, which should cause a certain
amount of (justified) fear for anyone who knows what that means ;)

Having ctypes in the stdlib would be cool, because it would mean that
many C library extension could be installed with no compilation step,
since ctypes would already be compiled as part of the default install.
Assuming the C library was already installed, but typically C libraries
get packaged for distribution long before the associated Python
extension is packaged.

-- 
Ian Bicking  /  ianb@colorstudy.com  /  http://blog.ianbicking.org


Relevant Pages

  • Python language extension mechanism for Python 3000... Worth for PEP?
    ... Introduction of the mechanism for language extensions via ... Python could be done via special interpreter extensions. ...
    (comp.lang.python)
  • Re: Python Extension Building Network
    ... Windows binaries for any Python extension developer that needs them, ... others are pretty finicky and some extensions don't come with tests. ... There are no directions on how to use Visual Studio 2003 that I've ... pick up the installer in the build\ directory. ...
    (comp.lang.python)
  • Re: New versions breaking extensions, etc.
    ... > The problem is the Python C/API. ... > issue is that the interpreter and the extensions may be linked to ... Doesn't Microsoft have an answer for that? ... > required to make the C API version agnostic. ...
    (comp.lang.python)
  • Re: Python Webstart ?
    ... > the automatic update of the actual application software which I find most useful. ... Wrap the Python parts of your application in one or more ZIP archives. ... Create a "platform" release that contains a python build, the extensions ... Let your users install the platform release. ...
    (comp.lang.python)
  • Re: Python language extension mechanism for Python 3000... Worth for PEP?
    ... Introduction of the mechanism for language extensions via ... Python could be done via special interpreter extensions. ...
    (comp.lang.python)