[Pyrex] Re: Pyrex and C++

Andreas Kostyrka andreas at mtg.co.at
Tue Nov 18 09:57:09 CET 2003


On Mon, Nov 17, 2003 at 02:51:33PM -0800, Mike Rovner wrote:
> Michael JasonSmith wrote:
> > On Mon, 2003-11-17 at 17:36, Greg Ewing wrote:
> 
> > (foo ? bar : wibble) = blarg;
> 
> It's nothing but a shortcut for
> 
> if (foo)
>   bar = blarg;
> else
>   wibble = blarg;
> 
> There is nothing (and I doubt will ever be) like that in python,
> so what are we talking about?
> 
> Ah, compiling pyrex output with c++ - AFAIK no c++ compiler is going to drop
> c mode out? What is the problem compiling .c modules into c++ project?
Well, that's not completely correct, for example gccxml can only analyze c++
(OTOH, one could argue that gccxml isn't a compiler anymore ;) )

The important thing is that you need c++ mode to interface to C++ libraries.
(And there might be other technical reasons like exception propagation).

Andreas




More information about the Pyrex mailing list