Re: beginner questions on embedding/extending python with C++

2006-08-08 Thread Qun Cao
Thanks for all the good pointers! I am still reading throught them, but Boost seems to be the way to go! Roman Yakovenko wrote: > On 8 Aug 2006 02:28:31 -0700, Qun Cao <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > > > I am a beginner on cross language developmen

Re: beginner questions on embedding/extending python with C++

2006-08-08 Thread Qun Cao
Thanks Diez, It is a good relief that I only need to wrap the classes I need. I decide to try Boost first because it seems to have a wider audience than SIP, but I would definately look into SIP if I want to do Qt development in the future. Diez B. Roggisch wrote: > > Since the main program is s

(Boost.Python) How to load header files?

2006-08-08 Thread Qun Cao
Hi Everyone, I just started to use boost.python and having problem trying to get my first program working. I have a C++ class foo.cpp, defined in foo.h, I wrote a wrapper class for it to generate a python module. #include "Foo.h" #include #include #include using namespace boost::python; BOO

beginner questions on embedding/extending python with C++

2006-08-08 Thread Qun Cao
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python interface is providing a convenient scripting toolkit for the application. One example is that a user c

Re: wierd threading behavior

2005-10-17 Thread Qun Cao
Thanks Neil, that's very useful to know. Qun -- http://mail.python.org/mailman/listinfo/python-list

Re: wierd threading behavior

2005-10-14 Thread Qun Cao
Thanks Sam, That was a stupid typo ( yeah, I actually typed it in :), it should be (test,()). I am using python 2.4.1 in ubuntu. I do aware that threading.Thread is prefered, but I did not realize thread is deprecated. It is still a mysterious behavior anyhow. :) -- http://mail.python.org/mailm

Re: threading/forking and IPC

2005-10-14 Thread Qun Cao
Thanks David, This seems like the exact thing I am looking for! -- http://mail.python.org/mailman/listinfo/python-list

wierd threading behavior

2005-10-14 Thread Qun Cao
Hello, I am just starting to play threading in python, here is a really interesting problem I am very curious about: " import thread def main(): thread.start_new(test.()) def test(): print 'hello' main() " this program doesn't print out 'hello' as it is supposed to do. while if I change