[C++-sig] python namespace

David Abrahams dave at boost-consulting.com
Thu Nov 21 21:11:24 CET 2002

"Achim Domma" <achim.domma at syynx.de> writes:

> Hi,
> I have the same problem like Francois. I use the following:
>   handle<> inner_module(PyModule_New("Drawable"));
>   scope().attr("Drawable") = inner_module;
>   scope drawable = object(inner_module);
> it works fine with VC7 but I tried it on RH8 with gcc3.2 and it failed to
> compile with the same error as Francois code. Then I tried something like:
>   scope drawable = scope(object(inner_module))

Why are you messing around with that approach when I already posted
this correct one?

    scope drawable(object(inner_module));
> This compiles but does not have the expected result. 

Try with the latest CVS. It won't even compile <wink>.

                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

More information about the Cplusplus-sig mailing list