That's the reason I am using SWIG
http://www.swig.org
For C++ classes, you can get a working Python module autmatically. It
also has advanced features, like "directors", enablig subclassing from
Python (to be used in de C++ side).
However, I should warn you SWIG is not as friendly as Pyrex. But
I am waiting for the next chapter: "Jargons of Logos" ;)
--
http://mail.python.org/mailman/listinfo/python-list
can you send a small example of thing you are trying to do? As Python
is *really* dynamic, you can adapt algorithms in many ways... in
general, you can change methods, or even class! of almost any object...
--
http://mail.python.org/mailman/listinfo/python-list