Embedding Python in my C++ application
I am working on embedding Python 2.5 in my C++ application, and I have a few questions: 1) My application is multi-threaded; what problems should I be aware of if I create a separate interpreter in each working thread? The documentation is a bit vague (or perhaps I haven't found the right place). Calls into my application are already thread-safe. 2) Rather than implementing my own editor in C++, I would like to be able to use existing tools to some degree, such as a python editor, interactive interpreter and perhaps even debugger, without impacting the main (GUI) thread of my application. Is there an example application, or any hints from someone who has done this? 3) Because my program links statically with the C runtime (on Windows), and Python links with it dynamically, there are some things that cannot be passed back and forth, such as C file handles and FILE pointers. Is anyone aware of other issues this may cause? I will greatly appreciate help with these questions, or advice on embedding Python in general! Thanks, Sev -- http://mail.python.org/mailman/listinfo/python-list
Re: Finally had to plonk google gorups.
Grant Edwards wrote: > On 2008-04-16, Mensanator <[EMAIL PROTECTED]> wrote: >> On Apr 16, 9:19 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >>> This morning almost half of c.l.p was spam. In order to try >>> to not tar both the benign google group users and the >>> malignant ones with the same brush, I've been trying to kill >>> usenet spam with subject patterns. But that's not a battle >>> you can win, so I broke down and joined all the other people >>> that just killfile everything posted via google.groups. >> Not very bright, eh? >> >>> AFAICT, if you're a google groups user your posts are not being >>> seen by many/most experienced (read "non-google-group") users. >>> This is mainly the fault of google who has refused to do >>> anything to stem the flood of span that's being sent via Google >>> Groups. >> Duh. > > My. That was certainly a well-reasoned and well-written > response. Well, it did come from an AOL user posting from Google groups . -- http://mail.python.org/mailman/listinfo/python-list