[C++-sig] exposing properties with getters and setters

Achim Domma achim.domma at syynx.de
Sun Jun 23 18:37:59 CEST 2002


Hi,

what is the correct way to expose properties in boost.python V2, if I have a
function pair for getting and setting the property? Can/Should I use
'__setattr__propertyname' or something else? I tried to use add_property,
but it expects two handles, not functionpointers. The only example I found
was iterator.cpp, but I didn't understand it.

Achim







More information about the Cplusplus-sig mailing list