[C++-sig] python namespace
Francois Ostiguy
ostiguy at fnal.gov
Thu Nov 21 17:56:41 CET 2002
On Thu, 21 Nov 2002, Achim Domma wrote:
> Date: Thu, 21 Nov 2002 17:48:27 +0100
> From: Achim Domma <achim.domma at syynx.de>
> Reply-To: c++-sig at python.org
> To: c++-sig at python.org
> Subject: RE: [C++-sig] python namespace
>
> 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))
>
> This compiles but does not have the expected result. BTW: Should the
> parameter for PyModule_New be "InnerModule" or "OuterModule.InnerModule"?
>
I am not clear on what you mean ... do you mean it *compiles* and *works*
fine with VC7 or just it *compiles* with VC7 ?
-Francois
----------------------------------------------------------------------------
Dr. Jean-Francois OSTIGUY voice: (630) 840-2231
Beam Physics Dept MS220 FAX: (630) 840-6039
Fermi National Accelerator Laboratory email: ostiguy at fnal.gov
Batavia IL 60510-0500 WWW:www-ap.fnal.gov/~ostiguy
More information about the Cplusplus-sig
mailing list