SWIG and Python incompatibilities?

2005-05-05 Thread adsheehan
Hi all, Has anyone experienced issues incompatible versions of the above? On solaris, we are experiencing suspect crashes & memory leaks? How do I determine which versions are proven to be compatible/incompatible etc? Thanks for helping. Alan -- http://mail.python.org/mailman/listinfo/python

Re: SWIG and Python incompatibilities?

2005-05-05 Thread adsheehan
Thanks Steve! appreciate the response. -- http://mail.python.org/mailman/listinfo/python-list

M2Crypto SSL memory leaks - fixes or alternatives ??

2005-05-09 Thread adsheehan
Hi folks, I notice that M2Crypto (a python wrap of OpenSSL) leaks (haemorrhages) memory significantly and affects my long running app very badly. Does anyone know of fixes to this problem? Does anyone recommmend alternatives to M2C ? e.g pyopenssl. I notice that Guido Van Rossum has flamed abou

Embedding Python in Multi-threading App. Any Guidelines, Hints, Recipes ??

2005-06-07 Thread adsheehan
Hi, I am embedding Python into a multi-threaded application running on Solaris. Python will enable end users to customize and re-program many aspects of the application. I expect that the C++ application will be natively multi-threaded and will embed multiple Python sub-interpreters. Called Pytho

Embedding: many interpreters OR one interpreter with many thread states ?

2005-06-08 Thread adsheehan
Hi, Does anyone know the reasoning or pros/cons for either (in a multi-threaded C++ app): - creating many sub-interpreters (Py_NewInterpreter) with a thread state each Or - creating one interpreter with many thread states (PyThreadState_New) When do I choose one approach over the other and w

Embedded Python - Sharing memory among scripts, threads

2005-10-21 Thread adsheehan
Hi, I have a multi-threaded C++ software app that embeds Python. When multi-threading (native system threads) it is possible that multiple instances of a Python script are active. I have a requirement to 'share' some data values between these script instances (e.g. counters, file handles etc).

Re: Embedded Python - Sharing memory among scripts, threads

2005-10-24 Thread adsheehan
Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

How to determine your pthread in Python?

2005-06-09 Thread adsheehan
Does anyone know how to determine the pthread or native thread identifier while in Python ? FYI I have a multi-threaded C++ app on Solaris that embeds the Python interpreter. While in the interpreter I need to determine its actual running thread id. FYI2 The python interpreter is not firing off e

Urgent: Embedding Python question please

2005-06-22 Thread adsheehan
Hi, I am embedding Python into a multi-threaded C++ application runnig on Solaris and need urgent clarification on the embedding architecture and its correct usage (as I am experience weird behaviors). Can anyone clarify: - if Python correctly supports multiple sub-interpreters (Py_NewInterprete

Urgent problem: Embedding Python questions....

2005-06-23 Thread adsheehan
Hi, I am embedding Python into a multi-threaded C++ application runnig on Solaris and need urgent clarification on the embedding architecture and its correct usage (as I am experience weird behaviors). Can anyone clarify: - if Python correctly supports multiple sub-interpreters (Py_NewInterp

Clarity: GIL, processes and CPUs etc

2006-02-15 Thread adsheehan
I have been reading many of the posting on the GIL and impact on threading etc. I have found is confusing and would welcome some clarity on this. I understand that embedding the interpreter in a C/C++ application limits it to one CPU. If the application is multi-threaded (system threads) in will n

Urgent: Embedding Python problems - advice sought

2005-08-16 Thread adsheehan
Hi, I am embedding Python into a multi-threaded C++ application running on Solaris and need urgent clarification on the embedding architecture and its correct usage (as I am experience weird behaviors). Can anyone clarify: - if Python correctly supports multiple sub-interpreters (Py_NewInterp

Re: Urgent: Embedding Python problems - advice sought

2005-08-17 Thread adsheehan
Does anyone have advice on other groups, sites etc that has knowledge of this subject ? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Urgent: Embedding Python problems - advice sought

2005-08-23 Thread adsheehan
Thanks Michael. I will look into the areas you have suggested... Alan -- http://mail.python.org/mailman/listinfo/python-list

GIL, threads and scheduling - performance cost

2005-08-29 Thread adsheehan
Hi all, Wondering if a GIL lock/unlock causes a re-schedule/contect swap when embedding Python in a multi-threaded C/C++ app on Unix ? If so, do I have any control or influence on this re-scheduling ? The app suffers from serious performance degradation (compared to pure c/C++) and high context

Re: GIL, threads and scheduling - performance cost

2005-08-29 Thread adsheehan
Merci Pierre, Yes I agree and plan to move more to C/C++ and releasing the GIL when entering C/C++. I also need to understand my original question re GIL and rescheduling. I fear that lock/unlock too often is also causing delays due to context switching. BTW do you have any hints/comments on SWI

Python:C++ interfacing. Tool selection recommendations

2005-09-16 Thread adsheehan
Hi, I am embedding Python with a C++ app and need to provide the Python world with access to objects & data with the C++ world. I am aware or SWIG, BOOST, SIP. Are there more? I welcome comments of the pros/cons of each and recommendations on when it appropriate to select one over the others. T

Re: Python:C++ interfacing. Tool selection recommendations

2005-09-19 Thread adsheehan
Thanks to all for your postings. Seems like a spread of opinions here. I guess SWIG, SIP & BOOST are all valid options which I need to vaidate in turn Alan -- http://mail.python.org/mailman/listinfo/python-list