ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> c++-sig
c++-sig
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved