[C++-sig] Re: Returning reference to member variable that's a basic
type
by David Abrahams other posts by this author
Oct 4 2003 12:35AM messages near this date
Re: [C++-sig] Re: Boost.Python and threads
|
Re: [C++-sig] Re: Returning reference to member variable that's a
basic type
Joel Gerard <llywelyn.geo@[...].com> writes:
> I hope this doesn't get me the dumb question of the day award but...
>
> How do you return a pointer/reference to a member variable(a basic type) and modify it fro
m
> python?
You don't. Basic types get mapped to Python ints, longs, and
strings, all of which are immutable. YOu can't modify them.
Decide what interface you'd like to see for this code in Python, code
up a pure-Python mock-up which does what you want, and we can discuss
how to achieve it with BPL.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Pierre Barbier de Reuille
Lijun Qin
David Abrahams
Pierre Barbier de Reuille
Niall Douglas
David Abrahams
Joel Gerard
Joel Gerard
|