[Pythonmac-SIG] CXX and SCXX

Jack Jansen jack@oratrix.nl
Wed, 01 Sep 1999 14:05:36 +0200


Has anyone used CXX or SCXX with MacPython? Comments?

In case you've never heard of these: CXX is a set of C++ templates that allow 
you to treat Python objects as first class citizens in C++ code. So all the 
INCREFs and DECREFs are taken care of, if you get passed two Python number 
objects in your C++ code you can just do "a + b" and you'll get back a Python 
object with the sum of them, etc. It all looks really really neat, from the 
description. CXX is part of the LLNL distribution.

SCXX is a lightweight re-implementation of it, which was recently announced to 
python-announce (the URL is http://starship.python.net/crew/gmcm/scxx.html).

And, if noone has used it yet: does anyone have a project in which they could 
use this?

The reason I'm asking all this is that it looks like CXX could make life _so_ 
much easier for writing Toolbox modules and such that it might be worthwhile 
to switch to C++ for the Toolbox modules, provided all this stuff indeed 
works...
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm