[Python-ideas] improving C structs layout

Stefan Behnel stefan_ml at behnel.de
Fri May 10 09:06:59 CEST 2013


Terry Jan Reedy, 08.05.2013 23:32:
> On 5/8/2013 1:58 PM, Charles-François Natali wrote:
>>> General +0 from me.
>>
>> Thanks for your help Nick ;-)
> 
> First question: is there any downside in terms of breaking code?

Certainly. It should not be done for public structs, which includes
basically everything that resides in header files. Modifying public structs
changes the ABI, so a module compiled for one CPython version would need to
be recompiled for the one that changes the structs *if* it uses them. I
don't think this change is worth that risk and hassle.

Stefan





More information about the Python-ideas mailing list