STINNER Victor added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21233>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to