|
Boost Users : |
Subject: Re: [Boost-users] [python] Defining a variable
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-09-25 07:31:59
Robert Dailey wrote:
> On Wed, Sep 24, 2008 at 7:08 PM, Neal Becker <ndbecker2_at_[hidden]> wrote:
>
>> Robert Dailey wrote:
>>
>> <snip>
>>
>> How about:
>> scope().attr("something") = whatever;
>
>
> Where would this code go? What does scope() do?
You could put it here:
BOOST_PYTHON_MODULE ... {
scope().attr ("something") = 42;
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net