Binary compatibility across Python versions?

Robert Kern robert.kern at gmail.com
Mon Jul 26 15:46:22 EDT 2010


On 7/26/10 2:40 PM, MRAB wrote:
> Philip Semanchuk wrote:
>> Hi all,
>> Does Python guarantee binary compatibility across major, minor and/or micro
>> versions? I looked through the docs and even with Google's help I wasn't able
>> to find any official statements on this subject.
>>
>>
>> Specifically, I'm concerned with binaries created by SWIG for a C++ library
>> that our project uses. We'd like to ship precompiled binaries for Linux, OS X
>> and Windows for Python 2.5 and 2.6. I'm hoping that it is sufficient to create
>> binaries for each Python for each platform (3 * 2 == 6 total precompiled
>> binaries).
>>
>> Thanks for any advice and pointers to official documentation on the subject.
>>
> There are differences between minor versions, but not, so far as I'm
> aware, between micro versions (and I'd be surprised if there were).

As a matter of policy, micro versions are binary-compatible. It's a bug if a 
micro revision breaks binary compatibility.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list