Author vstinner
Recipients josh.r, jtaylor, neologix, njs, pitrou, python-dev, skrah, vstinner
Date 2014-06-02.20:13:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401740005.16.0.80994794962.issue21233@psf.upfronthosting.co.za>
In-reply-to
Content
> I'm not sure: The usual case with ABI changes is that extensions may segfault if they are *not* recompiled [1].

Ok, I renamed the structure PyMemAllocator to PyMemAllocatorEx, so the compilation fails because PyMemAllocator name is not defined. Modules compiled for Python 3.4 will crash on Python 3.5 if they are not recompiled, but I hope that you recompile your modules when you don't use the stable ABI.

Using PyMemAllocator is now more complex because it depends on the Python version. See for example the patch for pyfailmalloc:
https://bitbucket.org/haypo/pyfailmalloc/commits/9db92f423ac5f060d6ff499ee4bb74ebc0cf4761

Using the C preprocessor, it's possible to limit the changes.
History
Date User Action Args
2014-06-02 20:13:25vstinnersetrecipients: + vstinner, pitrou, njs, skrah, neologix, python-dev, jtaylor, josh.r
2014-06-02 20:13:25vstinnersetmessageid: <1401740005.16.0.80994794962.issue21233@psf.upfronthosting.co.za>
2014-06-02 20:13:25vstinnerlinkissue21233 messages
2014-06-02 20:13:24vstinnercreate