[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Incorrect message about Python 2.4 bindings

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-09-18 09:12:37 CEST

David James <djames@collab.net> wrote:

> There never really was an issue here. You can build Python extensions
> with any compiler you like and they should work just fine. You don't
> need to use the same compiler as the Python developers.

That depends on which API you call. Compiling with different compilers means
that the SVN extension will use a different version of the C library (MSVCRT)
than the Python core. Most Python API calls are safe if they are used between
modules which use different C libraries because they don't need to share
objects, but some API calls will instead cause a crash. For instance,
PyFile_FromFile() passes a FILE* around: if you try that, you will see a nice
crash.

So, generically speaking, you CANNOT use a different compiler version. But in
practice, it mostly works if you avoid a few specific API calls.

Giovanni Bajo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 18 09:13:04 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.