Extending Python with C++ singleton pattern using boost python lib

Joerg Sauer NeXTStep at programmatic.de
Mon Apr 23 15:33:01 EDT 2001


OK,
doing some simplifications on the code (stripping comments and not
needed functions to show the problem) I made some errors. But the code
worked and produced the sample output.

I will try to get the proxy approach running to see if it works for
me.

But is there anybody out there who got a c++ singleton running in
python for windows and boost?

I got some code from Benjamin Geer, who does it with swig on unix, but
I could not get it run on windows and swig seems to have some
drawbacks on c++ classes and windows.

Thanks
Jörg



More information about the Python-list mailing list