[Python-Dev] Py_tp_getset in ABI?

Georg Brandl g.brandl at gmx.net
Thu Feb 3 22:56:36 CET 2011


Am 03.02.2011 22:46, schrieb "Martin v. Löwis":
> Am 03.02.2011 16:43, schrieb Egon Smiwa:
>> Hi all,
>> I'm trying to convert my embedding code to your new ABI,
>> but I cannot find the ABI slot for tp_getset in typeslots.h
>> (while tp_methods are supported). Is the support of tp_getset
>> not yet determined? 
> 
> Not sure what I thought - it seems that tp_getset and tp_members
> is plain missing. This is puzzling because I clearly meant to include
> PyMemberDef and PyGetSetDef (and they are included).
> 
> Unless somebody reminds me why they would have to be excluded, I
> would like to add them still.
> 
> Adding them after 3.2 would be forward-compatible (?), i.e.
> all modules build for 3.2 would continue to work in 3.2.1.
> However, modules using them would work in 3.2.1, but fail in
> 3.2.0 (with a RuntimeError exception)
> 
> So I think I would preferably add these before 3.2 is released.

I'm okay with you making this fix (and the one for #11067) before
3.2.0 is released.

Georg



More information about the Python-Dev mailing list