[Bf-python] tp_getset conversion update

Stephen Swaney sswaney at centurytel.net
Sun Sep 18 01:32:31 CEST 2005


On Sat, Sep 17, 2005 at 03:27:18PM -0700, Ken Hughes wrote:
> 
> OK, so I'm guess the compiler would also check that Lamp_setName() was 
> declared as:
> 
> int Lamp_setName( PyObject *self, PyObject *args)
> 
> as well, an inside Lamp_setName() we have to cast *self back into 
> whatever it really points at (which is what about half the methods do 
> anyway).

No, we can leave those methods alone.  The methods get cast as
either (PyCFunction) or (setter) or (getter) when they are put into the
appropriate tables.  All our BPy types are derived from PyObject.

-- 
Stephen Swaney			
sswaney at centurytel.net




More information about the Bf-python mailing list