on Tue Jan 20 2009, Ricardo Abreu <gumbeto-AT-gmail.com> wrote:

> Thank you very much for your answer, but what I really wanted was to expose 
> to Python
> just the first element of the pair and not the whole pair, so that the fact 
> that it is
> a pair in c++ would be transparent to python.

Looks like you want to use class_<...> .add_property( ... )

http://www.boost.org/doc/libs/1_37_0/libs/python/doc/v2/class.html#class_-spec-modifiers

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to