[Pyrex] Re: Re: Pyrex and C++

David J. C. Beach beach at verinet.com
Wed Nov 19 05:47:38 CET 2003


On Wed, 2003-11-19 at 08:29, Greg Ewing wrote:
> Mike Rovner <mike at nospam.com>:
> 
> > I love pyrex and use it all the way to link with C
> > prefer to use boost to link to C++.
> > 
> > So my question still stand - why do we need C++ compilation mode?
> 
> You might not want to, but other people have expressed a desire
> to use Pyrex for this. I haven't decided whether I'm going to
> do this or not yet, but we're talking about what it would take
> if I do.

Boost.Python is a great project, and I know it does an excellent job of
allowing the user to create extension types and functions in C++.  SIP
and SWIG allow this as well (although they require special interface
files).  All of these tools are great if you want to write the extension
type in C or C++.

However... Pyrex is the only project I'm aware of which allows the user
to create an extension type in a language that is much closer to
Python.  For a user with a Python background, this is a wonderful thing.

Still, the need can arise where the writer of a Pyrex extension need to
call C++ code.  As it stands, this is only possible by creating C
wrappers which sit between the Pyrex code and the C++.  If you have a
large number of classes/functions to wrap, this technique is far too
burdensome.

This is the reason I'm interested in C++ support for Pyrex.

Dave

-- 
David J. C. Beach
<beach at verinet.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20031118/35904a40/attachment.bin


More information about the Pyrex mailing list