Martin v. Löwis added the comment:

If the set of slots gets extended, extensions would have to opt-in to use the 
newer slots, i.e. the availability of slot numbers should be conditional at 
compile-time.

Returning 0 for slots not supported in a version seems fine to me as well 
(after reconsideration), as this is also what you would get if you just 
recompiled the old type with the new Python headers (i.e. all fields added at 
the end are 0-initialized).

As for slots added to 3.4: it would certainly possible to add them to the 
stable ABI, if we indeed trust that they are stable (i.e. won't go away until 
4.0). That would have to be decided on a slot-by-slot case, preferably in 
individual roundup issues.

----------
Added file: http://bugs.python.org/file33811/getslot2.diff

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

Reply via email to