[Python-Dev] cpython: Issue #18520: Add a new PyStructSequence_InitType2() function, same than

Antoine Pitrou solipsis at pitrou.net
Tue Jul 23 08:23:45 CEST 2013


On Tue, 23 Jul 2013 08:22:30 +0200
Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Tue, 23 Jul 2013 08:15:29 +0200
> Ronald Oussoren <ronaldoussoren at mac.com> wrote:
> > 
> > On 23 Jul, 2013, at 2:01, Benjamin Peterson <benjamin at python.org> wrote:
> > 
> > > We've cheerfully broken the ABI before on minor releases, though if
> > > it's part of the stable ABI, we can't be cavaliar about that anymore.
> > 
> > It is not part of the stable ABI. Given that the implementation of 
> > PyStructSequence_InitType() in the patch just calls PyStructSequence_InitType2()
> > and ignores the return value you could change the return value of ..InitType().
> > 
> > This may or may not break existing extensions using the function (depending on
> > platform ABI details, AFAIK this is not a problem on x86/x86_64), but reusing
> > extensions across python feature releases is not supported anyway.
> 
> Not supported? It should certainly be supported accross bugfix
> versions. Otherwise, installing a new bugfix version would force you to
> recompile all independently-installed extension modules.

Ah, but I see that "minor release" was used in the sense of "feature
release". My bad. (Grrr!)

Regards

Antoine.




More information about the Python-Dev mailing list