Embedded python 2.6 interpreter can't "import sqlite3" on Windows XP

2009-02-01 Thread jdetaeye
I am porting an application which embeds a Python interpreter to Python 2.6. On version 2.5 all is working fine, but importing the sqlite3 module doesn't work any more on 2.6. The statement "import sqlite3" does work fine when executed from in the python command prompt, ie not from the embedded

Extending C++ with Python scripting: "twin objects" or "proxy objects"?

2008-03-18 Thread jdetaeye
Hi, I would like to use Python as a scripting language for a C++ framework I am working on. The most common approach for this seems to be a "twin objects": the python and the C++ object have the same lifespan and are always linked to each other. My initial thinking was to use a "proxy approach"